Skip to content

Commit f437236

Browse files
committed
Use const string reference instead of string_view
1 parent f8f4216 commit f437236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/external_definition/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void define_endpoints(crow::SimpleApp& app) {
1010
return true;
1111
})
1212
.onopen([](crow::websocket::connection&) {})
13-
.onclose([](crow::websocket::connection&, std::string_view) {});
13+
.onclose([](crow::websocket::connection&, const std::string&) {});
1414
}
1515

1616
int main()

0 commit comments

Comments
 (0)