|
Boost : |
Subject: Re: [boost] [mpl] Problem with VC++14 and boost::mpl::size_t
From: Edward Diener (eldiener_at_[hidden])
Date: 2015-07-27 07:56:16
On 7/27/2015 6:28 AM, John Maddock wrote:
>
>
> On 26/07/2015 16:16, Edward Diener wrote:
>> #include <cstddef>
>> #include <iostream>
>> namespace boost { namespace mpl {
>> struct integral_c_tag { static const int value = 0; };
>> template< std::size_t N >
>> struct size_t
>> {
>> static const std::size_t value = N;
>> typedef size_t type;
>> typedef std::size_t value_type;
>> typedef integral_c_tag tag;
>> typedef boost::mpl::size_t< static_cast<std::size_t>((value + 1))
>> > next;
>> typedef boost::mpl::size_t< static_cast<std::size_t>((value - 1))
>> > prior;
>> operator std::size_t() const { return
>> static_cast<std::size_t>(this->value); }
>> };
>> template< std::size_t N >
>> std::size_t const boost::mpl::size_t< N >::value;
>> }}
>>
>> int main()
>> {
>> return 0;
>> }
>> using namespace boost;
>> using namespace mpl;
>
> That builds in release mode, but not debug, weird!
What are the different options between release and debug mode ?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk