///////////////////////////////////////////////////////////////
// Copyright 2012 John Maddock. 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_
+// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
#ifndef BOOST_MP_TABLE_TYPE
#define BOOST_MP_TABLE_TYPE
struct string_table_entry
{
-private:
+ private:
const char* m_data;
-public:
+
+ public:
string_table_entry(const char* p) : m_data(p) {}
template <class T>
- operator T () const
+ operator T() const
{
return static_cast<T>(m_data);
}
};
-inline std::ostream& operator << (std::ostream& os, string_table_entry const & what)
+inline std::ostream& operator<<(std::ostream& os, string_table_entry const& what)
{
return os << static_cast<const char*>(what);
}
#define SC_(x) string_table_entry(BOOST_STRINGIZE(x))
#endif
-