Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Sometimes 'free' is not a member of 'std'.
[simgrid.git] / include / xbt / sysdep.h
index 7cdf659..45d9320 100644 (file)
@@ -111,7 +111,7 @@ static XBT_ALWAYS_INLINE void *xbt_realloc(void *p, size_t s) {
 #define xbt_free(p) free(p) /*nothing specific to do here. A poor valgrind replacement? */
 
 #ifdef __cplusplus
-#define XBT_FREE_NOEXCEPT noexcept(noexcept(std::free))
+#define XBT_FREE_NOEXCEPT noexcept(noexcept(::free))
 #else
 #define XBT_FREE_NOEXCEPT
 #endif