|
Boost : |
Subject: Re: [boost] [mpl] Problem with VC++14 and boost::mpl::size_t
From: Samuel Neves (samuelneves0_at_[hidden])
Date: 2015-07-27 13:44:04
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;
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk