問題タブ [pointer-aliasing]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c++ - C++ template/aliasing - Type/value mismatch at argument 1 in template parameter list
I'm getting my feet wet with aliasing in templated classes, and haven't been able to compile the following code:
I get two compile errors, a type-value mismatch at argument 1 in template parameter list
, and a template argument 2 is invalid.
However, if I write the following code instead:
then it compiles without errors. According to my understanding, these two statements should do the same thing. What am I not understanding correctly?