We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hi, this code
// https://stackoverflow.com/questions/9851594/standard-c11-way-to-remove-all-pointers-of-a-type #include <type_traits> template <typename T> struct remove_all_pointers : std::conditional_t< std::is_pointer_v<T>, remove_all_pointers<std::remove_pointer_t<T>>, std::type_identity<T> > {}; int main() { static_assert(std::is_same_v<int, remove_all_pointers<int *>::type>); }
gets translated to
... /* First instantiated from: insights.cpp:14 */ #ifdef INSIGHTS_USE_TEMPLATE template<> struct remove_all_pointers<int *> : public std::remove_all_pointers<int> { }; ...
here std::remove_all_pointers<int> should in fact be remove_all_pointers<int>, it has no namespace.
std::remove_all_pointers<int>
remove_all_pointers<int>
The text was updated successfully, but these errors were encountered:
Hello @wangzimei,
thanks for catching that!
A fix is on its way.
Andreas
Sorry, something went wrong.
Fixed #473: Use the correct namespace.
46478ff
d5ea148
39972b7
bb39786
Merge pull request #474 from andreasfertig/fixIssue473
2fbadb9
No branches or pull requests
hi, this code
gets translated to
here
std::remove_all_pointers<int>
should in fact beremove_all_pointers<int>
, it has no namespace.The text was updated successfully, but these errors were encountered: