Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom registered type name should be used in class templates as well #40

Closed
acki-m opened this issue Feb 1, 2017 · 1 comment · Fixed by #69
Closed

custom registered type name should be used in class templates as well #40

acki-m opened this issue Feb 1, 2017 · 1 comment · Fixed by #69

Comments

@acki-m
Copy link
Contributor

acki-m commented Feb 1, 2017

printing the name of following type:

std::cout << type::get<std::reference_wrapper<std::string>>().get_name() << std::endl;

Results in following output with MSVC 2015:

class std::reference_wrapper<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >

Desired output:

class std::reference_wrapper< std::string >

Every type with which has the original type name included should be replaced with the custom registered name. That are normally templates, but function ptrs should also be honored...

Coding starting point:

type_register.cpp
std::string type_register_private::derive_name(const type_data& wrapper_type, const type_data& array_raw_type, string_view name)
@acki-m
Copy link
Contributor Author

acki-m commented May 29, 2017

@rovarma
Can you help me to fix this?
With the new get_template_arguments() is should be not that difficult anymore.

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

Successfully merging a pull request may close this issue.

1 participant