Bo

Avatar
  • 活动总数 2
  • 最后的活动
  • 成员加入日期
  • 关注 0 名用户
  • 关注者数 0 名用户
  • 投票数 0
  • 订阅数 1
  • 已编辑于

    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...
    • 2 个关注者
    • 1 条评论
    • 0 票