Unverified Commit 763b7d6c authored by rdzehtsiar's avatar rdzehtsiar Committed by GitHub
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: default avatarRoman Degtyar <Roman.Degtyar@veeam.com>
parent e87ed7e5
...@@ -107,9 +107,9 @@ struct disable_if : public disable_if_c<Cond::value, T> {}; ...@@ -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;
......
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