amrali:
We faced a problem with 'typename' keyword gives compile errors if used for identifiers defined inside namespaces.
See this example, it does not even compile
Edited: 'We' refers to me and @Dominik Christian Egert
Note: If an extra pair of parenthesis is added around the identifier, the problem is gone:
The fix with an enclosing bracet will not work on templated types...
template <typename T> void func_type_id(T p_in, const int __line) { printf("line:%i Type:%s", __line, typename((T))); }
Fails to compile
I has been fixed.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
We faced a problem with 'typename' keyword gives compile errors if used for identifiers defined inside namespaces.
See this example, it does not even compile
Edited: 'We' refers to me and @Dominik Christian Egert
Note: If an extra pair of parenthesis is added around the identifier, the problem is gone: