Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:51:08

0001 #ifndef BOOST_QVM_TO_STRING_HPP_INCLUDED
0002 #define BOOST_QVM_TO_STRING_HPP_INCLUDED
0003 
0004 // Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc.
0005 
0006 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0007 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0008 
0009 #include <string>
0010 
0011 #if __cplusplus >= 201103L
0012 
0013 namespace boost { namespace qvm {
0014 
0015 namespace
0016 qvm_to_string_detail
0017     {
0018     using std::to_string;
0019     }
0020 
0021 } }
0022 
0023 #else
0024 
0025 #include <sstream>
0026 
0027 namespace boost { namespace qvm {
0028 
0029 namespace
0030 qvm_to_string_detail
0031     {
0032     template <class T>
0033     std::string
0034     to_string( T const & x )
0035         {
0036         std::stringstream s;
0037         s << x;
0038         return s.str();
0039         }
0040     }
0041 
0042 } }
0043 
0044 #endif
0045 
0046 #endif