mirror of
https://github.com/Kistler-Group/sdbus-cpp.git
synced 2025-08-03 20:14:25 +02:00
Change in logic when constructor is available
This commit is contained in:
@@ -98,9 +98,11 @@ namespace sdbus {
|
|||||||
public:
|
public:
|
||||||
using std::tuple<_ValueTypes...>::tuple;
|
using std::tuple<_ValueTypes...>::tuple;
|
||||||
|
|
||||||
// Constructor for GCC 7.1.0 and above
|
// Disable constructor if an older then 7.1.0 version of GCC is used
|
||||||
#if __GNUC__ > 7 || (__GNUC__ == 7 && (__GNUC_MINOR__ > 1 || (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ > 0))
|
#if !((defined(__GNUC__) || defined(__GNUG__)) && !defined(__clang__) && !(__GNUC__ > 7 || (__GNUC__ == 7 && (__GNUC_MINOR__ > 1 || (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ > 0)))))
|
||||||
Struct(const std::tuple<_ValueTypes...>& t)
|
Struct() = default;
|
||||||
|
|
||||||
|
explicit Struct(const std::tuple<_ValueTypes...>& t)
|
||||||
: std::tuple<_ValueTypes...>(t)
|
: std::tuple<_ValueTypes...>(t)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user