/*============================================================================= Copyright (c) 2011-2014 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #ifndef SPROUT_RATIONAL_UDL_HPP #define SPROUT_RATIONAL_UDL_HPP #include #include #if SPROUT_USE_USER_DEFINED_LITERALS namespace sprout { namespace udl { namespace rational { // // _r // inline SPROUT_CONSTEXPR sprout::rational operator"" _r(unsigned long long x) { return sprout::rational(x); } // // _rl // _rL // inline SPROUT_CONSTEXPR sprout::rational operator"" _rl(unsigned long long x) { return sprout::rational(x); } inline SPROUT_CONSTEXPR sprout::rational operator"" _rL(unsigned long long x) { return sprout::rational(x); } // // _rll // _rLL // inline SPROUT_CONSTEXPR sprout::rational operator"" _rll(unsigned long long x) { return sprout::rational(x); } inline SPROUT_CONSTEXPR sprout::rational operator"" _rLL(unsigned long long x) { return sprout::rational(x); } } // namespace rational using sprout::udl::rational::operator"" _r; using sprout::udl::rational::operator"" _rl; using sprout::udl::rational::operator"" _rL; using sprout::udl::rational::operator"" _rll; using sprout::udl::rational::operator"" _rLL; } // namespace udl using sprout::udl::rational::operator"" _r; using sprout::udl::rational::operator"" _rl; using sprout::udl::rational::operator"" _rL; using sprout::udl::rational::operator"" _rll; using sprout::udl::rational::operator"" _rLL; } // namespace sprout #endif // #if SPROUT_USE_USER_DEFINED_LITERALS #endif // #ifndef SPROUT_RATIONAL_UDL_HPP