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] Created: (STDCXX-311) std::mask_array::operator= inaccessible
Date Tue, 12 Dec 2006 00:39:20 GMT
std::mask_array::operator= inaccessible
---------------------------------------

                 Key: STDCXX-311
                 URL: http://issues.apache.org/jira/browse/STDCXX-311
             Project: C++ Standard Library
          Issue Type: Bug
          Components: 26. Numerics
    Affects Versions: 4.1.2, 4.1.3
         Environment: All.
            Reporter: Martin Sebor
         Assigned To: Martin Sebor
             Fix For: 4.2


The well-formed program below fails to compile because the mask_array copy assignment operator
is declared private:

$ cat z.cpp && make z
#include <valarray>

int main ()
{
    std::valarray<int> va (10);
    std::mask_array<int> ma (va [std::valarray<bool>(1)]);
    ma = ma;
}
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:1079: error: 'std::mask_array<_TypeT>&
std::mask_array<_TypeT>::operator=(const std::mask_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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message