diff options
author | Francis Dupont <fdupont@isc.org> | 2015-08-18 12:25:31 +0200 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2015-08-18 12:25:31 +0200 |
commit | 47f2e13646dc91c7c6fa8a248e81a2d324fe2278 (patch) | |
tree | 4f198d6513b307984e5aef3b096eb4c6cd74ca06 /src/lib/util/encode | |
parent | [master] Added ChangeLog entry 989 for #3997. (diff) | |
download | kea-47f2e13646dc91c7c6fa8a248e81a2d324fe2278.tar.xz kea-47f2e13646dc91c7c6fa8a248e81a2d324fe2278.zip |
[4006] removed pfto macros and some compiler junk conditionals
Diffstat (limited to 'src/lib/util/encode')
-rw-r--r-- | src/lib/util/encode/base16_from_binary.h | 9 | ||||
-rw-r--r-- | src/lib/util/encode/base32hex_from_binary.h | 9 | ||||
-rw-r--r-- | src/lib/util/encode/binary_from_base16.h | 12 | ||||
-rw-r--r-- | src/lib/util/encode/binary_from_base32hex.h | 12 |
4 files changed, 8 insertions, 34 deletions
diff --git a/src/lib/util/encode/base16_from_binary.h b/src/lib/util/encode/base16_from_binary.h index 7ac4fd15dd..f5674fdac4 100644 --- a/src/lib/util/encode/base16_from_binary.h +++ b/src/lib/util/encode/base16_from_binary.h @@ -1,11 +1,6 @@ #ifndef BOOST_ARCHIVE_ITERATORS_BASE16_FROM_BINARY_HPP #define BOOST_ARCHIVE_ITERATORS_BASE16_FROM_BINARY_HPP -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // base16_from_binary.h (derived from boost base64_from_binary.hpp) @@ -85,9 +80,9 @@ class base16_from_binary : public: // make composable by using templated constructor template<class T> - base16_from_binary(BOOST_PFTO_WRAPPER(T) start) : + base16_from_binary(T start) : super_t( - Base(BOOST_MAKE_PFTO_WRAPPER(static_cast<T>(start))), + Base(static_cast<T>(start)), detail::from_4_bit<CharType>() ) {} diff --git a/src/lib/util/encode/base32hex_from_binary.h b/src/lib/util/encode/base32hex_from_binary.h index be35c014f5..39216c2471 100644 --- a/src/lib/util/encode/base32hex_from_binary.h +++ b/src/lib/util/encode/base32hex_from_binary.h @@ -1,11 +1,6 @@ #ifndef BOOST_ARCHIVE_ITERATORS_BASE32HEX_FROM_BINARY_HPP #define BOOST_ARCHIVE_ITERATORS_BASE32HEX_FROM_BINARY_HPP -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // base32hex_from_binary.h (derived from boost base64_from_binary.hpp) @@ -87,9 +82,9 @@ class base32hex_from_binary : public: // make composable by using templated constructor template<class T> - base32hex_from_binary(BOOST_PFTO_WRAPPER(T) start) : + base32hex_from_binary(T start) : super_t( - Base(BOOST_MAKE_PFTO_WRAPPER(static_cast<T>(start))), + Base(static_cast<T>(start)), detail::from_5_bit<CharType>() ) {} diff --git a/src/lib/util/encode/binary_from_base16.h b/src/lib/util/encode/binary_from_base16.h index 307842a83b..f913dd0722 100644 --- a/src/lib/util/encode/binary_from_base16.h +++ b/src/lib/util/encode/binary_from_base16.h @@ -1,11 +1,6 @@ #ifndef BOOST_ARCHIVE_ITERATORS_BINARY_FROM_BASE16_HPP #define BOOST_ARCHIVE_ITERATORS_BINARY_FROM_BASE16_HPP -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // binary_from_base16.h (derived from boost binary_from_base64.hpp) @@ -45,10 +40,7 @@ struct to_4_bit { -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 50-5f -1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1 // 60-6f }; - // metrowerks trips this assertion - how come? - #if ! defined(__MWERKS__) BOOST_STATIC_ASSERT(0x70 == sizeof(lookup_table)); - #endif signed char value = -1; if((unsigned)t < sizeof(lookup_table)) value = lookup_table[(unsigned)t]; @@ -93,9 +85,9 @@ class binary_from_base16 : public public: // make composable by using templated constructor template<class T> - binary_from_base16(BOOST_PFTO_WRAPPER(T) start) : + binary_from_base16(T start) : super_t( - Base(BOOST_MAKE_PFTO_WRAPPER(static_cast<T>(start))), + Base(static_cast<T>(start)), detail::to_4_bit<CharType>() ) {} diff --git a/src/lib/util/encode/binary_from_base32hex.h b/src/lib/util/encode/binary_from_base32hex.h index 457fa3ca75..2911789cd3 100644 --- a/src/lib/util/encode/binary_from_base32hex.h +++ b/src/lib/util/encode/binary_from_base32hex.h @@ -1,11 +1,6 @@ #ifndef BOOST_ARCHIVE_ITERATORS_BINARY_FROM_BASE32HEX_HPP #define BOOST_ARCHIVE_ITERATORS_BINARY_FROM_BASE32HEX_HPP -// MS compatible compilers support #pragma once -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once -#endif - /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // binary_from_base32hex.h (derived from boost binary_from_base64.hpp) @@ -48,10 +43,7 @@ struct to_5_bit { -1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24, // 60-6f 25,26,27,28,29,30,31,-1,-1,-1,-1,-1,-1,-1,-1,-1 // 70-7f }; - // metrowerks trips this assertion - how come? - #if ! defined(__MWERKS__) BOOST_STATIC_ASSERT(0x80 == sizeof(lookup_table)); - #endif signed char value = -1; if((unsigned)t < sizeof(lookup_table)) value = lookup_table[(unsigned)t]; @@ -96,9 +88,9 @@ class binary_from_base32hex : public public: // make composable by using templated constructor template<class T> - binary_from_base32hex(BOOST_PFTO_WRAPPER(T) start) : + binary_from_base32hex(T start) : super_t( - Base(BOOST_MAKE_PFTO_WRAPPER(static_cast<T>(start))), + Base(static_cast<T>(start)), detail::to_5_bit<CharType>() ) {} |