Issue Details (XML | Word | Printable)

Key: STDCXX-310
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Martin Sebor
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

std::slice_array copy assignment inaccessible

Created: 12/Dec/06 12:33 AM   Updated: 02/Jun/08 06:12 PM
Return to search
Component/s: 26. Numerics
Affects Version/s: 4.1.2, 4.1.3, 4.1.4, 4.2.0, 4.2.1
Fix Version/s: 4.3.0

Time Tracking:
Original Estimate: 4h
Original Estimate - 4h
Remaining Estimate: 4h
Remaining Estimate - 4h
Time Spent: Not Specified
Remaining Estimate - 4h

Environment: all
Issue Links:
Reference

Severity: Compiler Error


 Description  « Hide
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



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.