[patch] implement std::experimental::any
Jonathan Wakely
jwakely@redhat.com
Sat Jun 14 16:01:00 GMT 2014
On 10/06/14 14:44 +0100, Jonathan Wakely wrote:
>This patch implements std::experimental::any from the Fundamentals TS,
>including small-object optimisation, uses-allocator construction and
>partial support for -fno-rtti (I should probably disable the
>allocator-extended constructors when RTTI is disabled, or any_cast
>doesn't work).
>
>The allocator-extended copy constructor is not implemented, I don't
>think it's possible!
>
>It could probably do with some more tests before I commit it, but
>posting for comments as I've had it sitting in my tree for some time
>and I might as well share it.
Here's what I'm committing, with more tests, improved -fno-rtti
handling and complete Doxygen comments (which are currently useless
because doc/doxygen/user.cfg.in defines __cplusplus to 2001103L so we
don't generate docs for any C++14 or TS components).
Tested x86_64-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 40553 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20140614/deb19cc4/attachment.bin>
More information about the Libstdc++
mailing list