¡@

Home 

c++ Programming Glossary: wrgl

templates problem ('typename' as not template function parameter)

http://stackoverflow.com/questions/1600464/templates-problem-typename-as-not-template-function-parameter

best explained using an example struct foo typedef int wrgl template typename T struct bar typedef T wrgl blrgl wrong shouldn't.. typedef int wrgl template typename T struct bar typedef T wrgl blrgl wrong shouldn't compile blrgl f fine if `blrgl` is a type.. The reason is that the compiler doesn't know whether T wrgl is a type. For all it know I might intent bar to be instantiated..