|
Boost : |
Subject: Re: [boost] [mpl] Problem with VC++14 and boost::mpl::size_t
From: John Maddock (jz.maddock_at_[hidden])
Date: 2015-07-27 06:28:05
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!
John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk