Browse Source

Fixed a compile problem with the GNU c++ library

tags/2021-05-28
jules 9 years ago
parent
commit
89dade2a00
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      modules/juce_core/memory/juce_ReferenceCountedObject.h
  2. +1
    -1
      modules/juce_core/memory/juce_ScopedPointer.h

+ 1
- 1
modules/juce_core/memory/juce_ReferenceCountedObject.h View File

@@ -248,7 +248,7 @@ public:
#if JUCE_COMPILER_SUPPORTS_NULLPTR
/** Creates a pointer to a null object. */
ReferenceCountedObjectPtr (std::nullptr_t) noexcept
ReferenceCountedObjectPtr (decltype (nullptr)) noexcept
: referencedObject (nullptr)
{
}


+ 1
- 1
modules/juce_core/memory/juce_ScopedPointer.h View File

@@ -78,7 +78,7 @@ public:
#if JUCE_COMPILER_SUPPORTS_NULLPTR
/** Creates a ScopedPointer containing a null pointer. */
inline ScopedPointer (std::nullptr_t) noexcept : object (nullptr)
inline ScopedPointer (decltype (nullptr)) noexcept : object (nullptr)
{
}
#endif


Loading…
Cancel
Save