Skip to content

Commit

Permalink
static_string test: Avoid implicit conversion of reference to pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Feb 15, 2024
1 parent a6803dc commit 41e1bd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/static_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ TEST_CASE("rsl::StaticString") {
auto const string = "Hello, world!"s;
auto const static_string = rsl::StaticString<14>(string);
CHECK(static_string.begin() != static_string.end());
auto const* begin = static_string.begin();
std::array<std::string::value_type, string_capacity>::const_iterator begin = static_string.begin();
CHECK(*begin++ == 'H');
CHECK(*begin++ == 'e');
CHECK(*begin++ == 'l');
Expand Down

0 comments on commit 41e1bd6

Please sign in to comment.