Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Mark xbt::string as a hack
[simgrid.git] / include / xbt / swag.h
index fa96ed4..e406066 100644 (file)
@@ -189,4 +189,16 @@ static inline void *xbt_swag_getFirst(xbt_swag_t swag)
 /* @} */
 
 SG_END_DECL()
+
+#ifdef __cplusplus
+namespace simgrid {
+namespace xbt {
+  inline void destroy(xbt_swag_t s)
+  {
+    xbt_swag_free(s);
+  }
+}
+}
+#endif
+
 #endif                          /* _XBT_SWAG_H */