| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 55f4844 commit 8ef643d
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -96,6 +96,12 @@ | |||
| 96 | 96 | ||
| 97 | 97 | namespace proto2 { | |
| 98 | 98 | class [[nodiscard]] MessageLite; | |
| 99 | + | ||
| 100 | + // Dummy forward declaration of `DynamicCastMessage`. Does not match any actual | ||
| 101 | + // overloads of `DynamicCastMessage`, but can be used to assist name resolution | ||
| 102 | + // in templates. | ||
| 103 | + template <typename T> | ||
| 104 | + T DynamicCastMessage() = delete; | ||
| 99 | 105 | } | |
| 100 | 106 | ||
| 101 | 107 | namespace testing { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -114,8 +114,7 @@ void PrintBytesInObjectToImpl(const unsigned char* obj_bytes, size_t count, | |||
| 114 | 114 | // char32_t. | |
| 115 | 115 | template <typename CharType> | |
| 116 | 116 | char32_t ToChar32(CharType in) { | |
| 117 | - return static_cast<char32_t>( | ||
| 118 | - static_cast<typename std::make_unsigned<CharType>::type>(in)); | ||
| 117 | + return static_cast<char32_t>(static_cast<std::make_unsigned_t<CharType>>(in)); | ||
| 119 | 118 | } | |
| 120 | 119 | ||
| 121 | 120 | } // namespace | |
| Back | FazBrowse Home | New Git URL |
0 commit comments