mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Fix compilation errors in build for Oracle Solaris OS (#1133)
On Oracle Solaris the following statement is declared in file /usr/include/sys/regset.h: #define SS 18 /* only stored on a privilege transition */ Because of this template type name SS is substituted by numeric literal, which results in a compilation error: error: expected nested-name-specifier before numeric constant Fixed by renaming template type names. Co-authored-by: Roman Degtyar <Roman.Degtyar@veeam.com>
This commit is contained in:
@@ -107,9 +107,9 @@ struct disable_if : public disable_if_c<Cond::value, T> {};
|
|||||||
|
|
||||||
template <typename S, typename T>
|
template <typename S, typename T>
|
||||||
struct is_streamable {
|
struct is_streamable {
|
||||||
template <typename SS, typename TT>
|
template <typename StreamT, typename ValueT>
|
||||||
static auto test(int)
|
static auto test(int)
|
||||||
-> decltype(std::declval<SS&>() << std::declval<TT>(), std::true_type());
|
-> decltype(std::declval<StreamT&>() << std::declval<ValueT>(), std::true_type());
|
||||||
|
|
||||||
template <typename, typename>
|
template <typename, typename>
|
||||||
static auto test(...) -> std::false_type;
|
static auto test(...) -> std::false_type;
|
||||||
|
Reference in New Issue
Block a user