Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-18 09:04:06

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