Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[surf] Hardcode some of the sg_platf_host callbacks
[simgrid.git] / src / bindings / java / surf_swig.cpp
index ac6c7c0..f27fdf2 100644 (file)
@@ -4,6 +4,12 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
+// Avoid ambiguity between boost and std placeholders
+// (the std placeholders are imported through boost::signals2):
+#ifndef BOOST_BIND_NO_PLACEHOLDERS
+  #define BOOST_BIND_NO_PLACEHOLDERS
+#endif
+
 #include <functional>
 
 #include <boost/lambda/bind.hpp>
@@ -33,7 +39,6 @@ CpuModel *java_cpu_model;
 static void java_cpu_model_init_preparse() {
   surf_cpu_model_pm = java_cpu_model;
   xbt_dynar_push(all_existing_models, &java_cpu_model);
-  sg_platf_host_add_cb(cpu_parse_init);
 }
 
 void setCpuModel(CpuModel *cpuModel){