andrew

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: No callstack on failed assert(). #29472
    andrew
    Participant

    In the example above, assert() does infact print the file-name and line-number to stdout before crashing, but the error message printed from the original program is not giving me a file or line number:

    terminate called after throwing an instance of 'std::out_of_range'
    what(): basic_string::at: __n (which is 5) >= this->size() (which is 2)

    in reply to: Template formatting #13426
    andrew
    Participant

    I should add that the problem occurs when formatting existing code. For example

    template<class T>
    class Foo {
     // ...
    };

    becomes

    template<class T>
       class Foo {
          // ...
       };

    after using the CTRL + K, CTRL + D shortcut to format the document.

    • This reply was modified 6 years, 10 months ago by andrew.
    in reply to: Template formatting #13425
    andrew
    Participant

    With the template parameter list on one line followed by the declaration on the next as follows:

    template<class T>
    class Foo {
       // ...
    };
Viewing 3 posts - 1 through 3 (of 3 total)