Bo

Avatar
  • Total activity 2
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 1
  • Bo created a post,
    Answered

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

    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...