Boost logo

Boost :

Subject: Re: [boost] Reminder: 1.65 closes for major changes tomorrow
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2017-06-28 08:53:57


> -----Original Message-----
> From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of Peter Dimov via Boost
> Sent: 27 June 2017 17:01
> To: boost_at_[hidden]
> Cc: Peter Dimov
> Subject: Re: [boost] Reminder: 1.65 closes for major changes tomorrow
>
> Frédéric Bron wrote:
> > > Christian is the maintainer. I looked at your patch and I guess I would
> > > have used .max().
> >
> > yes, both should give the same. I agree with max().
>
> constexpr max() is C++11 - the context here is a template parameter if I
> understand correctly. static_cast<>(-1) works on C++03.

Do any of the macros

BOOST_CONSTEXPR, BOOST_CONSTEXPR_OR_CONST, BOOST_STATIC_CONSTEXPR ...

http://www.boost.org/doc/libs/1_64_0/libs/config/doc/html/boost_config/boost_macro_reference.html

help you here?

Paul

---
Paul A. Bristow
Prizet Farmhouse
Kendal UK LA8 8AB
+44 (0) 1539 561830

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