| 18 | // one OS or the other. |
| 19 | template <typename T> |
| 20 | auto select(const std::basic_string_view<T>& string16, const std::basic_string_view<T>& string32) |
| 21 | { |
| 22 | assert(string16 != string32 && "Invalid to select between identical inputs"); |
| 23 | if constexpr (sizeof(wchar_t) == 2) |
| 24 | return string16; |
| 25 | else |
| 26 | return string32; |
| 27 | } |
| 28 | } // namespace |
| 29 | |
| 30 | using namespace std::string_view_literals; |
no outgoing calls
no test coverage detected