Boost logo

Boost :

Subject: Re: [boost] Interest in updated expression template library?
From: Zach Laine (whatwasthataddress_at_[hidden])
Date: 2017-01-12 11:18:21


On Wed, Jan 11, 2017 at 5:34 PM, Brook Milligan <brook_at_[hidden]> wrote:

>
> Given that I found no installation instructions and cmake just built
> examples and tests, I guess I made the wrong assumption about how to use
> the library. I incorrectly just included your files as if they would work
> directly. Now a closer look at the code indicates that I have to define
> the following macro to avoid the constexpr-if statements:
> BOOST_NO_CONSTEXPR_IF. Now it works fine. Sorry if this should have been
> obvious, but I am not a user of Hana and have never encountered the need
> for this macro elsewhere in Boost.
>
> Since I assume this will be necessary for (any?) pre-c++17 compiler, I
> suggest an addition to the “compiler support” page that mentions this.
> Given that there is no dependence of the library on, for example,
> cmake-generated configuration files (which there shouldn’t be), I feel this
> is an important bit of information to give to users.
>

Excellent point. I'll add a "#define BOOST_NO_CONSTEXPR_IF 0" to
config.hpp when it is not otherwise defined.

> Now at least I can give it a try. Thanks again for the help.

Happy to help.

Zach


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