Blame view

3rdparty/boost_1_81_0/boost/qvm/to_string.hpp 839 Bytes
0b6a182c   Hu Chunming   添加无鉴权注册和注销
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  #ifndef BOOST_QVM_TO_STRING_HPP_INCLUDED
  #define BOOST_QVM_TO_STRING_HPP_INCLUDED
  
  // Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc.
  
  // 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)
  
  #if __cplusplus >= 201103L
  
  #include <string>
  
  namespace boost { namespace qvm {
  
  namespace
  qvm_to_string_detail
      {
      template <class T>
      std::string
      to_string( T const & x )
          {
          return std::to_string(x);
          }
      }
  
  } }
  
  #else
  
  #include <sstream>
  
  namespace boost { namespace qvm {
  
  namespace
  qvm_to_string_detail
      {
      template <class T>
      std::string
      to_string( T const & x )
          {
          std::stringstream s;
          s << x;
          return s.str();
          }
      }
  
  } }
  
  #endif
  
  #endif