1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-05 00:23:56 +01:00

Fix compilation warnings on Mac

This commit is contained in:
Paul Licameli
2018-01-08 19:09:13 -05:00
parent cb403954fa
commit bec6f237bc

View File

@@ -1150,10 +1150,11 @@ make_value_transform_iterator(const Iterator &iterator, Function function)
// For using std::unordered_map on wxString // For using std::unordered_map on wxString
namespace std namespace std
#ifdef __AUDACITY_OLD_STD__
::tr1
#endif
{ {
#ifdef __AUDACITY_OLD_STD__
namespace tr1
{
#endif
template<typename T> struct hash; template<typename T> struct hash;
template<> struct hash< wxString > { template<> struct hash< wxString > {
size_t operator () (const wxString &str) const // noexcept size_t operator () (const wxString &str) const // noexcept
@@ -1163,6 +1164,9 @@ namespace std
return Hasher{}( stdstr ); return Hasher{}( stdstr );
} }
}; };
}; #ifdef __AUDACITY_OLD_STD__
}
#endif
}
#endif // __AUDACITY_MEMORY_X_H__ #endif // __AUDACITY_MEMORY_X_H__