Skip to content

add nameof into boost::core::demangle.hpp #166

@gpeterhoff

Description

@gpeterhoff
#include <typeinfo>

namespace boost
{
namespace core
{
template <typename Type>
inline std::string	nameof()
{
	return demangle(typeid(Type).name());
}

}	//	core
}	//	boost

This saves a lot of manual fiddling around.

thx
Gero

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions