Commit 6cfab263 authored by Peterson, Peter's avatar Peterson, Peter
Browse files

Work around gcc 5 internal compiler error

parent c0bf6634
......@@ -51,6 +51,9 @@ public:
#if defined(_MSC_VER) && _MSC_VER <= 1900
Peak(Peak &&);
Peak &operator=(Peak &&);
#elif defined(__GNUC__) && (__GNUC__ == 5)
Peak(Peak &&) noexcept = default;
Peak &operator=(Peak &&) noexcept = default;
#else
Peak(Peak &&) noexcept;
Peak &operator=(Peak &&) noexcept;
......
......@@ -234,6 +234,8 @@ Peak::Peak(const Geometry::IPeak &ipeak)
#if defined(_MSC_VER) && _MSC_VER <= 1900
Peak::Peak(Peak &&) = default;
Peak &Peak::operator=(Peak &&) = default;
#elif defined(__GNUC__) && (__GNUC__ == 5)
// already defined in the header
#else
Peak::Peak(Peak &&) noexcept = default;
Peak &Peak::operator=(Peak &&) noexcept = default;
......
Supports Markdown
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