Home
ReSharper Support | JetBrains
Contact Support
Community
Sign in

V

Avatar
  • Total activity 5
  • Last activity October 04, 2022 21:37
  • Member since April 21, 2022 13:33
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 0
Activity overview Posts (2) Comments (3)
Sort by recent activity Recent activity Votes
  • Created October 04, 2022 20:43
    I propose to at least separate this check for owning and non-owning strings.
    1. Community
    2. ReSharper C++
    3. ReadabilityRedundantStringInit when assigning an empty string to std::string_view
    • 0 votes
  • Edited October 04, 2022 21:37
    This check is alright, but only when it's applied to owning strings. In non-owning strings case the equality check terminates when size() is zero, it doesn't care whether either of operands contain...
    1. Community
    2. ReSharper C++
    3. ReadabilityRedundantStringInit when assigning an empty string to std::string_view
    • 0 votes
  • Edited October 04, 2022 20:40
    There is. string_view() produces an instance that is effectively uninitialized. Instance produced by string_view(""), on the other hand, is in valid state and perfectly usable. Implementation of th...
    1. Community
    2. ReSharper C++
    3. ReadabilityRedundantStringInit when assigning an empty string to std::string_view
    • 0 votes
Copyright © 2000– JetBrains s.r.o.