@@ -115,13 +115,12 @@ class BigInteger
115115
116116// ------------------------------------------------
117117
118- static constexpr char baseFNDigits[] =
118+ constexpr char baseFNDigits[] =
119119 " 0123456789"
120120 " abcdefghijklmnopqrstuvwxyz" ;
121121
122- static constexpr std::size_t baseFN = sizeof (baseFNDigits) - 1 ;
122+ constexpr std::size_t baseFN = sizeof (baseFNDigits) - 1 ;
123123
124- static
125124std::size_t constexpr
126125baseFNEncodedSize (
127126 std::size_t n)
@@ -138,7 +137,6 @@ baseFNEncodedSize(
138137 @return The number of characters written to `out`. This
139138 will exclude any null termination.
140139*/
141- static
142140std::size_t
143141baseFNEncode (
144142 void * dest,
@@ -159,7 +157,6 @@ baseFNEncode(
159157
160158// ------------------------------------------------
161159
162- static
163160std::size_t constexpr
164161base64EncodedSize (
165162 std::size_t n)
@@ -175,7 +172,6 @@ base64EncodedSize(
175172 @return The number of characters written to `out`. This
176173 will exclude any null termination.
177174*/
178- static
179175std::size_t
180176base64Encode (void * dest, void const * src, std::size_t len)
181177{
@@ -240,7 +236,7 @@ toBaseFN(
240236{
241237 dest.resize (baseFNEncodedSize (src.size ()));
242238 auto n = baseFNEncode (&dest[0 ], src.data (), src.size ());
243- return llvm::StringRef ( dest.data (), n) ;
239+ return { dest.data (), n} ;
244240}
245241
246242std::string_view
0 commit comments