[Issue 14956] C++ Mangling incompatible with C++11
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Nov 7 01:37:45 PST 2015
https://issues.dlang.org/show_bug.cgi?id=14956
--- Comment #4 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Marco Leise from comment #2)
> I assume the only way out of this is providing a -cxx11 flag for dmd? >.<
As we already support C++ namespaces, we can funnel what needs to be changed in
the testsuite case itself.
---
extern (C++, std)
{
version (C++-98)
{
struct basic_string(T, C = char_traits!T, A = allocator!T)
{
}
}
else version (C++-11)
{
extern (C++, __cxx11)
{
struct basic_string(T, C = char_traits!T, A = allocator!T)
{
}
}
}
}
---
Which leaves us with the question, how do figure out whether to use version
condition branch A or B?
--
More information about the Digitalmars-d-bugs
mailing list