Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Function overloading on return type #58671
    Tobias
    Participant
        Up
        1
        Down
        ::

        In solution 2 you tried to specialize the templates within the class declaration. There may be other/better solutions but I prefer to write declaration and definition separately like in the plain C world and in my opinion a template is more something like a declaration, but a specialized template is more like a definition. (compileExplorer) And this is what the error tries to tell, the “namespace scope” in this example is outside the class definition.

        in reply to: Wrong lambda sizes #58670
        Tobias
        Participant
            Up
            1
            Down
            ::

            I don’t have this issue with my compiler, but perhaps a hint, that could help:

            static_assert() without a message is a C++17 feature (cppreference)

            So it could be, that your IDE is using another toolchain for this messages, than you would like to use (had this issue with another IDE)

            You could try to compile it with the flag /Wall active, to get further information.

            in reply to: Proper C++ to English Translation #9162
            Tobias
            Participant
                Up
                3
                Down
                ::

                There is a handy rule that works quite fine for me, perhaps you also get along with it.

                http://c-faq.com/decl/spiral.anderson.html

              Viewing 3 posts - 1 through 3 (of 3 total)