forked from master131/BlockTheSpot
-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ namespace Utils | |
#endif | ||
|
||
template<typename T> | ||
constexpr auto TypeConvert(const T& arg) | ||
const auto& TypeConvert(const T& arg) | ||
{ | ||
if constexpr (std::is_same_v<T, const wchar_t*>) { | ||
return std::wstring_view(arg); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mrpond
Author
Owner
|
||
|
is this legal/defined? I thought returning a const reference to a temporary object was UB.