18 Jul
2012
18 Jul
'12
1:47 p.m.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Maxime van Noppen Sent: Wednesday, July 18, 2012 12:03 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] How to force a compile failure if a template parameter isn't floating-point
On 07/18/2012 12:54 PM, Paul A. Bristow wrote:
Suggestions welcome :-) http://www.boost.org/doc/libs/1_47_0/doc/html/boost_staticassert.html
BOOST_STATIC_ASSERT(boost::is_floating_point<FPT>::value);
So why didn't I think of that ;-) (Even when I had used BOOST_STATIC_ASSERT() elsewhere in the program!) Thanks Paul --- Paul A. Bristow, Prizet Farmhouse, Kendal LA8 8AB UK +44 1539 561830 07714330204 pbristow@hetp.u-net.com