This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Fix some 28_regex/ fallout
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, libstdc++ at gcc dot gnu dot org
- Date: Wed, 3 Dec 2014 16:03:37 +0000
- Subject: Re: [PATCH] Fix some 28_regex/ fallout
- Authentication-results: sourceware.org; auth=none
- References: <20141203154705 dot GA16332 at redhat dot com>
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!