Boost logo

Boost Users :

Subject: Re: [Boost-users] template type asserting
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-01-25 11:58:39


AMDG

On 1/25/2011 8:47 AM, Kraus Philipp wrote:
> I have written a template class and I would like tot "assert the type".
> My class should only use floating point types like double or float. Can
> I do this check with BOOST_STATIC_ASSERT or anything else? The class
> need not to use a "countable type" (math: in N).
>

Does boost::is_float in boost/type_traits/is_float.hpp work?

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net