mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-03-09 11:09:32 +01:00
Fix #472 Template specialization failure with SunOS compiler
This commit is contained in:
parent
3edf0b4d92
commit
d43f001a36
@ -486,7 +486,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
#ifndef RAPIDJSON_DOXYGEN_RUNNING // hide SFINAE from Doxygen
|
#ifndef RAPIDJSON_DOXYGEN_RUNNING // hide SFINAE from Doxygen
|
||||||
template <typename T>
|
template <typename T>
|
||||||
explicit GenericValue(T b, RAPIDJSON_ENABLEIF((internal::IsSame<T,bool>))) RAPIDJSON_NOEXCEPT
|
explicit GenericValue(T b, RAPIDJSON_ENABLEIF((internal::IsSame<bool, T>))) RAPIDJSON_NOEXCEPT // See #472
|
||||||
#else
|
#else
|
||||||
explicit GenericValue(bool b) RAPIDJSON_NOEXCEPT
|
explicit GenericValue(bool b) RAPIDJSON_NOEXCEPT
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user