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

Open
#166 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
tooling

Research direction

Start by reading boost/core/demangle.hpp and the surrounding demangle implementation. Check how existing utilities are exposed and tested, then determine where the proposed nameof() helper belongs. Done means the helper is available through the appropriate header and its behavior is covered by the project's relevant tests.

Written by the indexing model from the issue text.

Description

#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

Dominant language
C++
Stars
156
Forks
116
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/core

All issues in boostorg/core

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.