11/* *
22 * @note This file is part of Empirical, https://github.com/devosoft/Empirical
33 * @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
4- * @date 2015-2017
4+ * @date 2015-2018
55 *
66 * @file JSWrap.h
77 * @brief Wrap a C++ function and convert it to an integer that can be called from Javascript
@@ -116,7 +116,7 @@ namespace emp {
116116 arg_var = tmp_var; // @CAO Do we need to free the memory in tmp_var?
117117 }
118118
119- template <int ARG_ID, size_t SIZE, typename T> static void LoadArg (std ::array<T, SIZE> & arg_var){
119+ template <int ARG_ID, size_t SIZE, typename T> static void LoadArg (emp ::array<T, SIZE> & arg_var){
120120 EM_ASM_ARGS ({emp_i.__outgoing_array = emp_i.cb_args [$0 ];}, ARG_ID);
121121 pass_array_to_cpp (arg_var);
122122 }
@@ -265,7 +265,7 @@ namespace emp {
265265 }
266266
267267 template <typename T, size_t N>
268- static void StoreReturn (const std ::array<T, N> & ret_var) {
268+ static void StoreReturn (const emp ::array<T, N> & ret_var) {
269269 pass_array_to_javascript (ret_var);
270270 EM_ASM ({ emp_i.cb_return = emp_i.__incoming_array ; });
271271 }
@@ -292,7 +292,7 @@ namespace emp {
292292 }
293293
294294 template <typename T, size_t N>
295- static void StoreReturn (const std ::array<T, N> & ret_var, std::string var) {
295+ static void StoreReturn (const emp ::array<T, N> & ret_var, std::string var) {
296296 pass_array_to_javascript (ret_var);
297297 EM_ASM_ARGS ({ emp_i.curr_obj [Pointer_stringify ($0 )] = emp_i.__incoming_array ;}, var.c_str ());
298298 }
0 commit comments