[gelöst] non-type template Argument -> not declared in this scope



  • Hallo,

    warum geht das

    template <template <typename T, typename U=T, int I=0> class Foo, typename Bar, typename Baz>
        class Example {
        public:
            Example(Foo<Bar, Baz, I>* foo):
    ...
    

    nicht?

    error: 'I' was not declared in this scope
    error: template argument 3 is invalid
    

    Philipp

    EDIT: Gelöst.
    Ich bin ja auch dämlich. I ist natürlich nur im Scope des inneren Templates. Liegt an der Uhrzeit 😞


Anmelden zum Antworten