Browse Source

Added an OS X 10.6 compatibility fix

tags/2021-05-28
tpoole 8 years ago
parent
commit
0c3faf4b58
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_core/containers/juce_SortedSet.h

+ 2
- 2
modules/juce_core/containers/juce_SortedSet.h View File

@@ -64,14 +64,14 @@ public:
/** Creates a copy of another set. */ /** Creates a copy of another set. */
// VS2013 doesn't allow defaulted noexcept constructors. // VS2013 doesn't allow defaulted noexcept constructors.
SortedSet (SortedSet&& other) noexcept : data (std::move (other.data)) {}
SortedSet (SortedSet&& other) noexcept : data (static_cast<decltype(data)&&> (other.data)) {}
/** Makes a copy of another set. */ /** Makes a copy of another set. */
SortedSet& operator= (const SortedSet&) = default; SortedSet& operator= (const SortedSet&) = default;
/** Makes a copy of another set. */ /** Makes a copy of another set. */
// VS2013 doesn't allow defaulted noexcept constructors. // VS2013 doesn't allow defaulted noexcept constructors.
SortedSet& operator= (SortedSet&& other) noexcept { data = std::move (other.data); return *this; }
SortedSet& operator= (SortedSet&& other) noexcept { data = static_cast<decltype(data)&&> (other.data); return *this; }
/** Destructor. */ /** Destructor. */
~SortedSet() noexcept {} ~SortedSet() noexcept {}


Loading…
Cancel
Save