]> WPIA git - cassiopeia.git/blobdiff - src/util.h
fix: catch another exception
[cassiopeia.git] / src / util.h
index 90365bde7038e772ecc3e889dfb6173e04a556dc..976c148ba32d9795f7bdfce4bef0de4455eae302 100644 (file)
@@ -15,9 +15,13 @@ std::pair<bool, std::time_t> parseYearInterval( std::time_t t, const std::string
 
 std::unique_ptr<std::ofstream> openLogfile( const std::string &name );
 
+#if __GNUC__ < 5
+namespace std{
 template<typename T, typename... Args>
 std::unique_ptr<T> make_unique( Args&&... args ) {
     return std::unique_ptr<T>( new T( std::forward<Args>(args)... ));
 }
+}
+#endif
 
 std::string timestamp();