Bo

Avatar
  • Total activity 2
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 1
  • Edited

    Wrong analysis for operator+ with std::string and char

    Answered
    In the following program CLion gives a faulty analysis of the code:     #include <string>    int main() {    return (int)(std::string() + '\n').length();    } CLion 2018.1.2 interprets '\n' as an i...
    • 2 followers
    • 1 comment
    • 0 votes