Re: [boost] Arithmetic (opaque) type without implicit conversions

18 Mar
2014
18 Mar
'14
5:45 p.m.
What is the Arithmetic concept?
Types that supports all operations provided by integral and floating point
types "model" the Arithmetic "constraint" (better than the word concept in
this context), as checked by std::is_arithmetic<T> [0], which is defined as
std::is_integral<T> || std::is_floating_point<T>.
I don't static_assert(std::is_arithmetic<T>) to allow other types that
might be viable but for which there is not a specialization of
std::is_integral/std::is_floating_point.
[0] http://en.cppreference.com/w/cpp/types/is_arithmetic
On Tue, Mar 18, 2014 at 5:38 PM, Robert Ramey
wrote:
4069
Age (days ago)
4069
Last active (days ago)
0 comments
1 participants
participants (1)
-
Gonzalo BG