Skip to content

Commit 763b7d6

Browse files
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 <[email protected]>
1 parent e87ed7e commit 763b7d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/yaml-cpp/traits.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ struct disable_if : public disable_if_c<Cond::value, T> {};
107107

108108
template <typename S, typename T>
109109
struct is_streamable {
110-
template <typename SS, typename TT>
110+
template <typename StreamT, typename ValueT>
111111
static auto test(int)
112-
-> decltype(std::declval<SS&>() << std::declval<TT>(), std::true_type());
112+
-> decltype(std::declval<StreamT&>() << std::declval<ValueT>(), std::true_type());
113113

114114
template <typename, typename>
115115
static auto test(...) -> std::false_type;

0 commit comments

Comments
 (0)