File type_info.hpp¶
File List > backends > cxx > include > zmbt > core > type_info.hpp
Go to the documentation of this file
#ifndef ZMBT_CORE_TYPE_INFO_HPP_
#define ZMBT_CORE_TYPE_INFO_HPP_
#include <type_traits>
#include <boost/type_index.hpp>
#include "aliases.hpp"
namespace zmbt {
template <class T>
inline std::string type_name()
{
return boost::typeindex::type_id_with_cvr<T>().pretty_name();
}
template <class T>
inline std::string type_name(T)
{
return type_name<T>();
}
} // namespace zmbt
#endif // ZMBT_CORE_TYPE_INFO_HPP_