CNL  2.0.2 (development)
Compositional Numeric Library
definition.h
Go to the documentation of this file.
1 
2 // Copyright John McFarlane 2015 - 2016.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file ../LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 
9 
10 #if !defined(CNL_IMPL_SCALED_INTEGER_DEFINITION_H)
11 #define CNL_IMPL_SCALED_INTEGER_DEFINITION_H
12 
13 #include "../../integer.h"
14 #include "../scaled/definition.h"
15 #include "../scaled/is_scaled_tag.h"
16 #include "../scaled/is_tag.h"
17 #include "../wrapper.h"
18 
19 #include <algorithm>
20 
22 namespace cnl {
46 
47 #if defined(__GNUG__) && !defined(__clang__)
48  template<integer Rep = int, scaled_tag Scale = power<>>
49 #else
50  template<integer Rep = int, class Scale = power<>>
51 #endif
52  using scaled_integer = _impl::wrapper<Rep, Scale>;
53 }
54 
55 #endif // CNL_IMPL_SCALED_INTEGER_DEFINITION_H
cnl
compositional numeric library
Definition: abort.h:15
cnl::scaled_integer
_impl::wrapper< Rep, Scale > scaled_integer
literal real number approximation that uses fixed-point arithmetic
Definition: definition.h:52