Skip to content

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

Open

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

Activity

  1. pdimov commented on Feb 7, 2024

    @pdimov
    Member

    See boost::core::type_name.

  2. gpeterhoff commented on Feb 7, 2024

    @gpeterhoff
    Author

    Thank you. I overlooked that.

    regards
    Gero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions