Boost logo

Boost :

Subject: Re: [boost] [1.61.0] building with Clang and c++11
From: Michel Morin (mimomorin_at_[hidden])
Date: 2016-07-02 12:28:59


Bjorn Reese wrote:
> A simpler patch is to make m_x static.

That would produce a compilation error: `1 / 0` is not a constant expression.

The downside of using non-static data member is that `mpl::print` no longer
gives warning with a typedef `typedef mpl::print<Foo> X;`. We need a variable
`mpl::print<Foo> x;` to produce warning.

The "deprecated" attribute might be a better way to produce warning.
But I fail to
apply that attribute to class templates.

Regards,
Michel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk