--- Comment #7 from jwakely dot gcc at gmail dot com 2010-05-31 10:16
---
n2637 removed comparisons on weak_ptr
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2637.pdf
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44339
--- Comment #6 from paolo dot carlini at oracle dot com 2010-05-31 01:24
---
... and I think the correct way to achieve what you want now would be:
std::set, std::owner_less>> wStdSet;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44339
--- Comment #5 from paolo dot carlini at oracle dot com 2010-05-31 00:52
---
I'm adding Jon in CC, but I think it's safe to close this PR as invalid: if you
look at n3090 (the latest working draft), it's clear that std::weak_ptr is
*not* LessThanComparable. However, if you change the sn
--- Comment #4 from pcayouette at spoluck dot ca 2010-05-31 00:26 ---
Error when #define line uncommented in example attached:
In file included from /usr/include/c++/4.4/memory:66,
from ../src/TestCpp0x.cpp:1:
/usr/include/c++/4.4/bits/shared_ptr.h: In member function b
--- Comment #3 from pcayouette at spoluck dot ca 2010-05-31 00:25 ---
Compile command:
g++ -O0 -g3 -Wall -std=c++0x -c -fmessage-length=0 -MMD -MP
-MF"src/TestCpp0x.d" -MT"src/TestCpp0x.d" -o"src/TestCpp0x.o"
"../src/TestCpp0x.cpp"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4433
--- Comment #2 from pcayouette at spoluck dot ca 2010-05-31 00:23 ---
(From update of attachment 20782)
Must have boost to compile the file.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44339
--- Comment #1 from pcayouette at spoluck dot ca 2010-05-31 00:18 ---
Created an attachment (id=20782)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20782&action=view)
Comparison between std case and boost case.
Uncomment the line
//#define USING_STD_SHARED_PTR
to expose the com