Commit a6e1cfdd by Jason Merrill Committed by Jason Merrill

regex_compiler.h (_S_cache_size): Change from function to variable.

	* include/bits/regex_compiler.h (_S_cache_size): Change from
	function to variable.

From-SVN: r260128
parent f8e94a01
2018-05-10 Jason Merrill <jason@redhat.com>
* include/bits/regex_compiler.h (_S_cache_size): Change from
function to variable.
2018-05-10 Edward Smith-Rowland <3dw4rd@verizon.net>
PR libstdc++/83140 - assoc_legendre returns negated value when m is odd
......
......@@ -527,14 +527,12 @@ namespace __detail
typedef typename std::is_same<_CharT, char>::type _UseCache;
static constexpr size_t
_S_cache_size()
{
return 1ul << (sizeof(_CharT) * __CHAR_BIT__ * int(_UseCache::value));
}
_S_cache_size =
1ul << (sizeof(_CharT) * __CHAR_BIT__ * int(_UseCache::value));
struct _Dummy { };
typedef typename std::conditional<_UseCache::value,
std::bitset<_S_cache_size()>,
std::bitset<_S_cache_size>,
_Dummy>::type _CacheT;
typedef typename std::make_unsigned<_CharT>::type _UnsignedCharT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment