[PATCH] Fix some 28_regex/ fallout
Jonathan Wakely
jwakely@redhat.com
Wed Dec 3 16:03:00 GMT 2014
On 03/12/14 16:47 +0100, Marek Polacek wrote:
>@@ -417,7 +417,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
> typedef typename std::is_same<_CharT, char>::type _UseCache;
>
> static constexpr size_t
>- _S_cache_size() { return 1ul << (sizeof(_CharT) * __CHAR_BIT__); }
>+ _S_cache_size() { return 1ul << (sizeof(_CharT) * __CHAR_BIT__
>+ * int(_UseCache::value)); }
Please re-indent it as:
static constexpr size_t
_S_cache_size()
{
return 1ul << (sizeof(_CharT) * __CHAR_BIT__ * int(_UseCache::value));
}
So the expression is all on one line. OK with that change - thanks!
More information about the Libstdc++
mailing list