incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Updated: (STDCXX-310) std::slice_array copy assignment inaccessible
Date Mon, 15 Oct 2007 00:19:51 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Sebor updated STDCXX-310:
--------------------------------

    Fix Version/s:     (was: 4.2)
                   4.2.1

As in the case of STDCXX-311, there is a question of the intended semantics of the copy assignment
operator (see also http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#621). Deferred
until 4.2.1 or until it's been made more clear what the intended semantics should be.

> std::slice_array copy assignment inaccessible
> ---------------------------------------------
>
>                 Key: STDCXX-310
>                 URL: https://issues.apache.org/jira/browse/STDCXX-310
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 26. Numerics
>    Affects Versions: 4.1.2, 4.1.3
>         Environment: all
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>             Fix For: 4.2.1
>
>
> The well-formed program below fails to compile because the slice_array copy assignment
operator is declared private:
> $ cat z.cpp && make z
> #include <valarray>
> int main ()
> {
>     std::valarray<int> va (10);
>     std::slice_array<int> sa (va [std::slice (0, 1, 1)]);
>     sa = sa;
> }
> gcc -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG    -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include
-I/build/sebor/gcc-4.1.0-11s/include -I/build/sebor/dev/stdlib/examples/include  -pedantic
-nostdinc++ -g  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long   z.cpp
> /build/sebor/dev/stdlib/include/valarray: In function 'int main()':
> /build/sebor/dev/stdlib/include/valarray:890: error: 'std::slice_array<_TypeT>&
std::slice_array<_TypeT>::operator=(const std::slice_array<_TypeT>&) [with
_TypeT = int]' is private
> z.cpp:7: error: within this context
> make: *** [z.o] Error 1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message