27 Jul
2015
27 Jul
'15
5:44 p.m.
On 27-07-2015 12:56, Edward Diener wrote:
On 7/27/2015 6:28 AM, John Maddock wrote:
That builds in release mode, but not debug, weird!
What are the different options between release and debug mode ?
I've tracked the issue down to the `xlocale` header, where the `_Crt_new_delete` class definition depends on the `_DEBUG` flag. A minimal example for reproduction, based on it, follows: struct B { #ifdef _DEBUG void operator delete(void *) {} #endif }; struct S : B { virtual ~S() {} }; namespace boost { namespace mpl { struct size_t {}; } } int main() { return 0; } using namespace boost::mpl;