This file contains hidden or 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
| #include "headers.h" | |
| struct Val_t { | |
| const std::string_view s; | |
| template<typename T> | |
| operator T() const { return S<T>::cast(s); } | |
| // can't have partial function specialization, | |
| // hence we use an intermediate structure |