mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-09 17:01:02 +00:00
Added thirdparty: boost library
This commit is contained in:
+46
@@ -0,0 +1,46 @@
|
||||
#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)
|
||||
|
||||
#include <string>
|
||||
|
||||
#if __cplusplus >= 201103L
|
||||
|
||||
namespace boost { namespace qvm {
|
||||
|
||||
namespace
|
||||
qvm_to_string_detail
|
||||
{
|
||||
using std::to_string;
|
||||
}
|
||||
|
||||
} }
|
||||
|
||||
#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
|
||||
Reference in New Issue
Block a user