stulp / dmpbbo

Python/C++ library for Dynamical Movement Primitives and Black-Box Optimization
GNU Lesser General Public License v2.1
224 stars 90 forks source link

Something went wrong when compiling the code #67

Closed pisoso closed 2 years ago

pisoso commented 2 years ago

Hey bro! Something went wrong when I compiled the code. The compilation process is as follows:

scu@pisoso:~/workspace/ws_lhj/opensource/dmpbbo$ mkdir -p build_dir; cd build_dir; cmake .. -DCMAKE_BUILD_TYPE=Release; make -j16
CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Could NOT find LWPR (missing: LWPR_LIBRARY LWPR_INCLUDE_DIR) 
-- Found Boost: /usr/local/lib/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.34") found components: filesystem system serialization 

-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
CMake Warning at CMakeLists.txt:83 (message):
  Doxygen is needed to build the documentation.  Please install it correctly

-- Configuring done
-- Generating done
-- Build files have been written to: /home/scu/workspace/ws_lhj/opensource/dmpbbo/build_dir
[  5%] Building CXX object src/dynamicalsystems/CMakeFiles/dynamicalsystems.dir/DynamicalSystem.cpp.o
[  5%] Building CXX object src/dmp/CMakeFiles/dmp.dir/DmpContextual.cpp.o
[  5%] Building CXX object src/eigen/CMakeFiles/eigen.dir/eigen_json.cpp.o
[  5%] Building CXX object src/dynamicalsystems/CMakeFiles/dynamicalsystems.dir/DynamicalSystemFactory.cpp.o
[  5%] Building CXX object src/dmp/CMakeFiles/dmp.dir/Dmp.cpp.o
[  5%] Building CXX object src/bbo/CMakeFiles/bbo.dir/DistributionGaussian.cpp.o
[  7%] Building CXX object src/dmp_bbo/CMakeFiles/dmp_bbo.dir/ExperimentBBO.cpp.o
[  7%] Building CXX object src/dynamicalsystems/CMakeFiles/dynamicalsystems.dir/ExponentialSystem.cpp.o
[  8%] Building CXX object src/bbo/CMakeFiles/bbo.dir/runOptimization.cpp.o
[  9%] Building CXX object src/dynamicalsystems/CMakeFiles/dynamicalsystems.dir/SigmoidSystem.cpp.o
[ 10%] Building CXX object src/dmp_bbo/tasks/CMakeFiles/tasksolverdmparm2d.dir/TaskSolverDmpArm2D.cpp.o
[ 11%] Building CXX object src/dmp_bbo/CMakeFiles/dmp_bbo.dir/Rollout.cpp.o
[ 13%] Building CXX object src/dmp/CMakeFiles/dmp.dir/DmpContextualOneStep.cpp.o
[ 13%] Building CXX object src/dmp_bbo/tasks/CMakeFiles/taskviapoint.dir/TaskViapoint.cpp.o
[ 14%] Building CXX object src/dmp_bbo/tasks/CMakeFiles/taskviapointarm2d.dir/TaskViapointArm2D.cpp.o
[ 15%] Building CXX object src/functionapproximators/CMakeFiles/functionapproximators.dir/BasisFunction.cpp.o
[ 16%] Building CXX object src/bbo/CMakeFiles/bbo.dir/updaters/UpdaterCovarAdaptation.cpp.o
[ 17%] Building CXX object src/dmp_bbo/CMakeFiles/dmp_bbo.dir/Task.cpp.o
[ 18%] Linking CXX static library libeigen.a
[ 18%] Built target eigen
[ 19%] Building CXX object src/dmp/CMakeFiles/dmp.dir/DmpContextualTwoStep.cpp.o
[ 20%] Building CXX object src/dynamicalsystems/CMakeFiles/dynamicalsystems.dir/SpringDamperSystem.cpp.o
[ 21%] Linking CXX static library libtaskviapointarm2d.a
[ 21%] Built target taskviapointarm2d
[ 22%] Building CXX object src/bbo/CMakeFiles/bbo.dir/updaters/UpdaterCovarDecay.cpp.o
[ 23%] Linking CXX static library libtasksolverdmparm2d.a
[ 23%] Built target tasksolverdmparm2d
[ 24%] Building CXX object src/dmp_bbo/CMakeFiles/dmp_bbo.dir/TaskSolver.cpp.o
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/string:40,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/dynamicalsystems/DynamicalSystem.hpp:29,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/dynamicalsystems/ExponentialSystem.hpp:27,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/dynamicalsystems/ExponentialSystem.cpp:24:
/usr/include/c++/7/bits/stl_iterator.h: In instantiation of ‘std::insert_iterator<_Container>& std::insert_iterator<_Container>::operator=(typename _Container::value_type&&) [with _Container = Eigen::Matrix<double, -1, 1>; typename _Container::value_type = double]’:
/usr/include/c++/7/bits/stl_algo.h:4306:12:   required from ‘_OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation) [with _IIter = nlohmann::detail::iter_impl<const nlohmann::basic_json<> >; _OIter = std::insert_iterator<Eigen::Matrix<double, -1, 1> >; _UnaryOperation = nlohmann::detail::from_json_array_impl(const BasicJsonType&, ConstructibleArrayType&, nlohmann::detail::priority_tag<0>) [with BasicJsonType = nlohmann::basic_json<>; ConstructibleArrayType = Eigen::Matrix<double, -1, 1>]::<lambda(const nlohmann::basic_json<>&)>]/usr/include/nlohmann/detail/conversions/from_json.hpp:215:19:   required from ‘void nlohmann::detail::from_json_array_impl(const BasicJsonType&, ConstructibleArrayType&, nlohmann::detail::priority_tag<0>) [with BasicJsonType = nlohmann::basic_json<>; ConstructibleArrayType = Eigen::Matrix<double, -1, 1>]/usr/include/nlohmann/detail/conversions/from_json.hpp:245:25:   required from ‘decltype (((nlohmann::detail::from_json_array_impl(j, arr, nlohmann::detail::priority_tag<3>{}), j.get<typename ConstructibleArrayType::value_type>()), void())) nlohmann::detail::from_json(const BasicJsonType&, ConstructibleArrayType&) [with BasicJsonType = nlohmann::basic_json<>; ConstructibleArrayType = Eigen::Matrix<double, -1, 1>; typename std::enable_if<(((nlohmann::detail::is_constructible_array_type<BasicJsonType, ConstructibleArrayType>::value && (! nlohmann::detail::is_constructible_object_type<BasicJsonType, ConstructibleObjectType>::value)) && (! nlohmann::detail::is_constructible_string_type<BasicJsonType, ConstructibleStringType>::value)) && (! nlohmann::detail::is_basic_json<T>::value)), int>::type <anonymous> = 0; decltype (((nlohmann::detail::from_json_array_impl(j, arr, nlohmann::detail::priority_tag<3>{}), j.get<typename ConstructibleArrayType::value_type>()), void())) = void; typename ConstructibleArrayType::value_type = double]/usr/include/nlohmann/detail/conversions/from_json.hpp:377:25:   required from ‘decltype ((nlohmann::detail::from_json(j, val), void())) nlohmann::detail::from_json_fn::operator()(const BasicJsonType&, T&) const [with BasicJsonType = nlohmann::basic_json<>; T = Eigen::Matrix<double, -1, 1>; decltype ((nlohmann::detail::from_json(j, val), void())) = void]/usr/include/nlohmann/adl_serializer.hpp:28:30:   required from ‘static decltype ((nlohmann::{anonymous}::from_json(forward<BasicJsonType>(j), val), void())) nlohmann::adl_serializer<T, SFINAE>::from_json(BasicJsonType&&, ValueType&) [with BasicJsonType = const nlohmann::basic_json<>&; ValueType = Eigen::Matrix<double, -1, 1>; <template-parameter-1-1> = Eigen::Matrix<double, -1, 1>; <template-parameter-1-2> = void; decltype ((nlohmann::{anonymous}::from_json(forward<BasicJsonType>(j), val), void())) = void]/usr/include/nlohmann/json.hpp:2643:45:   required from ‘ValueType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with ValueTypeCV = Eigen::Matrix<double, -1, 1>; ValueType = Eigen::Matrix<double, -1, 1>; typename std::enable_if<(((! nlohmann::detail::is_basic_json<U>::value) && nlohmann::detail::has_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value) && (! nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value)), int>::type <anonymous> = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]/usr/include/nlohmann/json.hpp:2936:30:   required from ‘nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::operator ValueType() const [with ValueType = Eigen::Matrix<double, -1, 1>; typename std::enable_if<((((((! std::is_pointer<_Ptr>::value) && (! std::is_same<ValueType, nlohmann::detail::json_ref<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> > >::value)) && (! std::is_same<ValueType, typename StringType::value_type>::value)) && (! nlohmann::detail::is_basic_json<BasicJsonType>::value)) && (! std::is_same<ValueType, std::initializer_list<typename StringType::value_type> >::value)) && typename nlohmann::detail::detector<nlohmann::detail::nonesuch, void, nlohmann::detail::get_template_function, const nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>&, ValueType>::value_t:: value), int>::type <anonymous> = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]/home/scu/workspace/ws_lhj/opensource/dmpbbo/src/dynamicalsystems/ExponentialSystem.cpp:110:58:   required from here
/usr/include/c++/7/bits/stl_iterator.h:703:20: error: class Eigen::Matrix<double, -1, 1>’ has no member named ‘insert’; did you mean ‘_set’?
  iter = container->insert(iter, std::move(__value));
         ~~~~~~~~~~~^~~~~~
         _set
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/string:40,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/dynamicalsystems/DynamicalSystem.hpp:29,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/dynamicalsystems/SigmoidSystem.hpp:27,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/dynamicalsystems/SigmoidSystem.cpp:31:
/usr/include/c++/7/bits/stl_iterator.h: In instantiation of ‘std::insert_iterator<_Container>& std::insert_iterator<_Container>::operator=(typename _Container::value_type&&) [with _Container = Eigen::Matrix<double, -1, 1>; typename _Container::value_type = double]’:
/usr/include/c++/7/bits/stl_algo.h:4306:12:   required from ‘_OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation) [with _IIter = nlohmann::detail::iter_impl<const nlohmann::basic_json<> >; _OIter = std::insert_iterator<Eigen::Matrix<double, -1, 1> >; _UnaryOperation = nlohmann::detail::from_json_array_impl(const BasicJsonType&, ConstructibleArrayType&, nlohmann::detail::priority_tag<0>) [with BasicJsonType = nlohmann::basic_json<>; ConstructibleArrayType = Eigen::Matrix<double, -1, 1>]::<lambda(const nlohmann::basic_json<>&)>]/usr/include/nlohmann/detail/conversions/from_json.hpp:215:19:   required from ‘void nlohmann::detail::from_json_array_impl(const BasicJsonType&, ConstructibleArrayType&, nlohmann::detail::priority_tag<0>) [with BasicJsonType = nlohmann::basic_json<>; ConstructibleArrayType = Eigen::Matrix<double, -1, 1>]/usr/include/nlohmann/detail/conversions/from_json.hpp:245:25:   required from ‘decltype (((nlohmann::detail::from_json_array_impl(j, arr, nlohmann::detail::priority_tag<3>{}), j.get<typename ConstructibleArrayType::value_type>()), void())) nlohmann::detail::from_json(const BasicJsonType&, ConstructibleArrayType&) [with BasicJsonType = nlohmann::basic_json<>; ConstructibleArrayType = Eigen::Matrix<double, -1, 1>; typename std::enable_if<(((nlohmann::detail::is_constructible_array_type<BasicJsonType, ConstructibleArrayType>::value && (! nlohmann::detail::is_constructible_object_type<BasicJsonType, ConstructibleObjectType>::value)) && (! nlohmann::detail::is_constructible_string_type<BasicJsonType, ConstructibleStringType>::value)) && (! nlohmann::detail::is_basic_json<T>::value)), int>::type <anonymous> = 0; decltype (((nlohmann::detail::from_json_array_impl(j, arr, nlohmann::detail::priority_tag<3>{}), j.get<typename ConstructibleArrayType::value_type>()), void())) = void; typename ConstructibleArrayType::value_type = double]/usr/include/nlohmann/detail/conversions/from_json.hpp:377:25:   required from ‘decltype ((nlohmann::detail::from_json(j, val), void())) nlohmann::detail::from_json_fn::operator()(const BasicJsonType&, T&) const [with BasicJsonType = nlohmann::basic_json<>; T = Eigen::Matrix<double, -1, 1>; decltype ((nlohmann::detail::from_json(j, val), void())) = void]/usr/include/nlohmann/adl_serializer.hpp:28:30:   required from ‘static decltype ((nlohmann::{anonymous}::from_json(forward<BasicJsonType>(j), val), void())) nlohmann::adl_serializer<T, SFINAE>::from_json(BasicJsonType&&, ValueType&) [with BasicJsonType = const nlohmann::basic_json<>&; ValueType = Eigen::Matrix<double, -1, 1>; <template-parameter-1-1> = Eigen::Matrix<double, -1, 1>; <template-parameter-1-2> = void; decltype ((nlohmann::{anonymous}::from_json(forward<BasicJsonType>(j), val), void())) = void]/usr/include/nlohmann/json.hpp:2643:45:   required from ‘ValueType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with ValueTypeCV = Eigen::Matrix<double, -1, 1>; ValueType = Eigen::Matrix<double, -1, 1>; typename std::enable_if<(((! nlohmann::detail::is_basic_json<U>::value) && nlohmann::detail::has_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value) && (! nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value)), int>::type <anonymous> = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]/usr/include/nlohmann/json.hpp:2936:30:   required from ‘nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::operator ValueType() const [with ValueType = Eigen::Matrix<double, -1, 1>; typename std::enable_if<((((((! std::is_pointer<_Ptr>::value) && (! std::is_same<ValueType, nlohmann::detail::json_ref<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> > >::value)) && (! std::is_same<ValueType, typename StringType::value_type>::value)) && (! nlohmann::detail::is_basic_json<BasicJsonType>::value)) && (! std::is_same<ValueType, std::initializer_list<typename StringType::value_type> >::value)) && typename nlohmann::detail::detector<nlohmann::detail::nonesuch, void, nlohmann::detail::get_template_function, const nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>&, ValueType>::value_t:: value), int>::type <anonymous> = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]/home/scu/workspace/ws_lhj/opensource/dmpbbo/src/dynamicalsystems/SigmoidSystem.cpp:183:58:   required from here
/usr/include/c++/7/bits/stl_iterator.h:703:20: error: class Eigen::Matrix<double, -1, 1>’ has no member named ‘insert’; did you mean ‘_set’?
  iter = container->insert(iter, std::move(__value));
         ~~~~~~~~~~~^~~~~~
         _set
[ 48%] Building CXX object src/functionapproximators/CMakeFiles/functionapproximators.dir/ModelParametersRBFN.cpp.o
[ 49%] Linking CXX static library libdmp_bbo.a
[ 49%] Built target dmp_bbo
[ 50%] Building CXX object src/functionapproximators/CMakeFiles/functionapproximators.dir/ModelParametersRRRFF.cpp.o
src/functionapproximators/CMakeFiles/functionapproximators.dir/build.make:243: recipe for target 'src/functionapproximators/CMakeFiles/functionapproximators.dir/MetaParametersRBFN.cpp.o' failed
make[2]: *** [src/functionapproximators/CMakeFiles/functionapproximators.dir/MetaParametersRBFN.cpp.o] Error 1
make[2]: *** 正在等待未完成的任务....
[ 51%] Linking CXX static library libdmp.a
[ 51%] Built target dmp
In file included from /usr/include/nlohmann/adl_serializer.hpp:6:0,
                 from /usr/include/nlohmann/json.hpp:51,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/eigen/eigen_json.hpp:26,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/ModelParametersRBFN.cpp:30:
/usr/include/nlohmann/detail/conversions/to_json.hpp: In instantiation of ‘static void nlohmann::detail::external_constructor<(nlohmann::detail::value_t)2>::construct(BasicJsonType&, const CompatibleArrayType&) [with BasicJsonType = nlohmann::basic_json<>; CompatibleArrayType = Eigen::Matrix<double, -1, -1>; typename std::enable_if<(! std::is_same<CompatibleArrayType, typename BasicJsonType::array_t>::value), int>::type <anonymous> = 0]’:
/usr/include/nlohmann/detail/conversions/to_json.hpp:266:52:   required from ‘void nlohmann::detail::to_json(BasicJsonType&, const CompatibleArrayType&) [with BasicJsonType = nlohmann::basic_json<>; CompatibleArrayType = Eigen::Matrix<double, -1, -1>; typename std::enable_if<(((nlohmann::detail::is_compatible_array_type<BasicJsonType, CompatibleArrayType>::value && (! nlohmann::detail::is_compatible_object_type<BasicJsonType, CompatibleObjectType>::value)) && (! nlohmann::detail::is_compatible_string_type<BasicJsonType, ConstructibleStringType>::value)) && (! nlohmann::detail::is_basic_json<T>::value)), int>::type <anonymous> = 0]/usr/include/nlohmann/detail/conversions/to_json.hpp:337:23:   required from ‘decltype ((nlohmann::detail::to_json(j, forward<T>(val)), void())) nlohmann::detail::to_json_fn::operator()(BasicJsonType&, T&&) const [with BasicJsonType = nlohmann::basic_json<>; T = const Eigen::Matrix<double, -1, -1>&; decltype ((nlohmann::detail::to_json(j, forward<T>(val)), void())) = void]/usr/include/nlohmann/adl_serializer.hpp:45:28:   required from ‘static decltype ((nlohmann::{anonymous}::to_json(j, forward<ValueType>(val)), void())) nlohmann::adl_serializer<T, SFINAE>::to_json(BasicJsonType&, ValueType&&) [with BasicJsonType = nlohmann::basic_json<>; ValueType = const Eigen::Matrix<double, -1, -1>&; <template-parameter-1-1> = Eigen::Matrix<double, -1, -1>; <template-parameter-1-2> = void; decltype ((nlohmann::{anonymous}::to_json(j, forward<ValueType>(val)), void())) = void]/usr/include/nlohmann/json.hpp:1304:35:   required from ‘nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::basic_json(CompatibleType&&) [with CompatibleType = const Eigen::Matrix<double, -1, -1>&; U = Eigen::Matrix<double, -1, -1>; typename std::enable_if<((! nlohmann::detail::is_basic_json<U>::value) && nlohmann::detail::is_compatible_type<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, U>::value), int>::type <anonymous> = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]/home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/ModelParametersRBFN.cpp:233:23:   required from here
/usr/include/nlohmann/detail/conversions/to_json.hpp:133:25: error: invalid use of void expression
         j.m_value.array = j.template create<typename BasicJsonType::array_t>(begin(arr), end(arr));
In file included from /usr/include/nlohmann/adl_serializer.hpp:5:0,
                 from /usr/include/nlohmann/json.hpp:51,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/eigen/eigen_json.hpp:26,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/ModelParametersRBFN.cpp:30:
/usr/include/nlohmann/detail/conversions/from_json.hpp: In instantiation of ‘void nlohmann::detail::from_json_array_impl(const BasicJsonType&, ConstructibleArrayType&, nlohmann::detail::priority_tag<0>) [with BasicJsonType = nlohmann::basic_json<>; ConstructibleArrayType = Eigen::Matrix<double, -1, -1>]’:
/usr/include/nlohmann/detail/conversions/from_json.hpp:245:25:   required from ‘decltype (((nlohmann::detail::from_json_array_impl(j, arr, nlohmann::detail::priority_tag<3>{}), j.get<typename ConstructibleArrayType::value_type>()), void())) nlohmann::detail::from_json(const BasicJsonType&, ConstructibleArrayType&) [with BasicJsonType = nlohmann::basic_json<>; ConstructibleArrayType = Eigen::Matrix<double, -1, -1>; typename std::enable_if<(((nlohmann::detail::is_constructible_array_type<BasicJsonType, ConstructibleArrayType>::value && (! nlohmann::detail::is_constructible_object_type<BasicJsonType, ConstructibleObjectType>::value)) && (! nlohmann::detail::is_constructible_string_type<BasicJsonType, ConstructibleStringType>::value)) && (! nlohmann::detail::is_basic_json<T>::value)), int>::type <anonymous> = 0; decltype (((nlohmann::detail::from_json_array_impl(j, arr, nlohmann::detail::priority_tag<3>{}), j.get<typename ConstructibleArrayType::value_type>()), void())) = void; typename ConstructibleArrayType::value_type = double]/usr/include/nlohmann/detail/conversions/from_json.hpp:377:25:   required from ‘decltype ((nlohmann::detail::from_json(j, val), void())) nlohmann::detail::from_json_fn::operator()(const BasicJsonType&, T&) const [with BasicJsonType = nlohmann::basic_json<>; T = Eigen::Matrix<double, -1, -1>; decltype ((nlohmann::detail::from_json(j, val), void())) = void]/usr/include/nlohmann/adl_serializer.hpp:28:30:   required from ‘static decltype ((nlohmann::{anonymous}::from_json(forward<BasicJsonType>(j), val), void())) nlohmann::adl_serializer<T, SFINAE>::from_json(BasicJsonType&&, ValueType&) [with BasicJsonType = const nlohmann::basic_json<>&; ValueType = Eigen::Matrix<double, -1, -1>; <template-parameter-1-1> = Eigen::Matrix<double, -1, -1>; <template-parameter-1-2> = void; decltype ((nlohmann::{anonymous}::from_json(forward<BasicJsonType>(j), val), void())) = void]/usr/include/nlohmann/json.hpp:2643:45:   required from ‘ValueType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with ValueTypeCV = Eigen::Matrix<double, -1, -1>; ValueType = Eigen::Matrix<double, -1, -1>; typename std::enable_if<(((! nlohmann::detail::is_basic_json<U>::value) && nlohmann::detail::has_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value) && (! nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value)), int>::type <anonymous> = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]/usr/include/nlohmann/json.hpp:2936:30:   required from ‘nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::operator ValueType() const [with ValueType = Eigen::Matrix<double, -1, -1>; typename std::enable_if<((((((! std::is_pointer<_Ptr>::value) && (! std::is_same<ValueType, nlohmann::detail::json_ref<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> > >::value)) && (! std::is_same<ValueType, typename StringType::value_type>::value)) && (! nlohmann::detail::is_basic_json<BasicJsonType>::value)) && (! std::is_same<ValueType, std::initializer_list<typename StringType::value_type> >::value)) && typename nlohmann::detail::detector<nlohmann::detail::nonesuch, void, nlohmann::detail::get_template_function, const nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>&, ValueType>::value_t:: value), int>::type <anonymous> = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]/home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/ModelParametersRBFN.cpp:224:52:   required from here
/usr/include/nlohmann/detail/conversions/from_json.hpp:216:42: error: invalid use of void expression
         j.begin(), j.end(), std::inserter(ret, end(ret)),
                             ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/nlohmann/adl_serializer.hpp:6:0,
                 from /usr/include/nlohmann/json.hpp:51,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/eigen/eigen_json.hpp:26,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/ModelParametersLWR.cpp:30:
/usr/include/nlohmann/detail/conversions/to_json.hpp: In instantiation of ‘static void nlohmann::detail::external_constructor<(nlohmann::detail::value_t)2>::construct(BasicJsonType&, const CompatibleArrayType&) [with BasicJsonType = nlohmann::basic_json<>; CompatibleArrayType = Eigen::Matrix<double, -1, -1>; typename std::enable_if<(! std::is_same<CompatibleArrayType, typename BasicJsonType::array_t>::value), int>::type <anonymous> = 0]’:
/usr/include/nlohmann/detail/conversions/to_json.hpp:266:52:   required from ‘void nlohmann::detail::to_json(BasicJsonType&, const CompatibleArrayType&) [with BasicJsonType = nlohmann::basic_json<>; CompatibleArrayType = Eigen::Matrix<double, -1, -1>; typename std::enable_if<(((nlohmann::detail::is_compatible_array_type<BasicJsonType, CompatibleArrayType>::value && (! nlohmann::detail::is_compatible_object_type<BasicJsonType, CompatibleObjectType>::value)) && (! nlohmann::detail::is_compatible_string_type<BasicJsonType, ConstructibleStringType>::value)) && (! nlohmann::detail::is_basic_json<T>::value)), int>::type <anonymous> = 0]/usr/include/nlohmann/detail/conversions/to_json.hpp:337:23:   required from ‘decltype ((nlohmann::detail::to_json(j, forward<T>(val)), void())) nlohmann::detail::to_json_fn::operator()(BasicJsonType&, T&&) const [with BasicJsonType = nlohmann::basic_json<>; T = const Eigen::Matrix<double, -1, -1>&; decltype ((nlohmann::detail::to_json(j, forward<T>(val)), void())) = void]/usr/include/nlohmann/adl_serializer.hpp:45:28:   required from ‘static decltype ((nlohmann::{anonymous}::to_json(j, forward<ValueType>(val)), void())) nlohmann::adl_serializer<T, SFINAE>::to_json(BasicJsonType&, ValueType&&) [with BasicJsonType = nlohmann::basic_json<>; ValueType = const Eigen::Matrix<double, -1, -1>&; <template-parameter-1-1> = Eigen::Matrix<double, -1, -1>; <template-parameter-1-2> = void; decltype ((nlohmann::{anonymous}::to_json(j, forward<ValueType>(val)), void())) = void]/usr/include/nlohmann/json.hpp:1304:35:   required from ‘nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::basic_json(CompatibleType&&) [with CompatibleType = const Eigen::Matrix<double, -1, -1>&; U = Eigen::Matrix<double, -1, -1>; typename std::enable_if<((! nlohmann::detail::is_basic_json<U>::value) && nlohmann::detail::is_compatible_type<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, U>::value), int>::type <anonymous> = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]/home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/ModelParametersLWR.cpp:444:23:   required from here
/usr/include/nlohmann/detail/conversions/to_json.hpp:133:25: error: invalid use of void expression
         j.m_value.array = j.template create<typename BasicJsonType::array_t>(begin(arr), end(arr));
In file included from /usr/include/nlohmann/adl_serializer.hpp:5:0,
                 from /usr/include/nlohmann/json.hpp:51,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/eigen/eigen_json.hpp:26,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/ModelParametersLWR.cpp:30:
/usr/include/nlohmann/detail/conversions/from_json.hpp: In instantiation of ‘void nlohmann::detail::from_json_array_impl(const BasicJsonType&, ConstructibleArrayType&, nlohmann::detail::priority_tag<0>) [with BasicJsonType = nlohmann::basic_json<>; ConstructibleArrayType = Eigen::Matrix<double, -1, -1>]’:
/usr/include/nlohmann/detail/conversions/from_json.hpp:245:25:   required from ‘decltype (((nlohmann::detail::from_json_array_impl(j, arr, nlohmann::detail::priority_tag<3>{}), j.get<typename ConstructibleArrayType::value_type>()), void())) nlohmann::detail::from_json(const BasicJsonType&, ConstructibleArrayType&) [with BasicJsonType = nlohmann::basic_json<>; ConstructibleArrayType = Eigen::Matrix<double, -1, -1>; typename std::enable_if<(((nlohmann::detail::is_constructible_array_type<BasicJsonType, ConstructibleArrayType>::value && (! nlohmann::detail::is_constructible_object_type<BasicJsonType, ConstructibleObjectType>::value)) && (! nlohmann::detail::is_constructible_string_type<BasicJsonType, ConstructibleStringType>::value)) && (! nlohmann::detail::is_basic_json<T>::value)), int>::type <anonymous> = 0; decltype (((nlohmann::detail::from_json_array_impl(j, arr, nlohmann::detail::priority_tag<3>{}), j.get<typename ConstructibleArrayType::value_type>()), void())) = void; typename ConstructibleArrayType::value_type = double]/usr/include/nlohmann/detail/conversions/from_json.hpp:377:25:   required from ‘decltype ((nlohmann::detail::from_json(j, val), void())) nlohmann::detail::from_json_fn::operator()(const BasicJsonType&, T&) const [with BasicJsonType = nlohmann::basic_json<>; T = Eigen::Matrix<double, -1, -1>; decltype ((nlohmann::detail::from_json(j, val), void())) = void]/usr/include/nlohmann/adl_serializer.hpp:28:30:   required from ‘static decltype ((nlohmann::{anonymous}::from_json(forward<BasicJsonType>(j), val), void())) nlohmann::adl_serializer<T, SFINAE>::from_json(BasicJsonType&&, ValueType&) [with BasicJsonType = const nlohmann::basic_json<>&; ValueType = Eigen::Matrix<double, -1, -1>; <template-parameter-1-1> = Eigen::Matrix<double, -1, -1>; <template-parameter-1-2> = void; decltype ((nlohmann::{anonymous}::from_json(forward<BasicJsonType>(j), val), void())) = void]/usr/include/nlohmann/json.hpp:2643:45:   required from ‘ValueType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with ValueTypeCV = Eigen::Matrix<double, -1, -1>; ValueType = Eigen::Matrix<double, -1, -1>; typename std::enable_if<(((! nlohmann::detail::is_basic_json<U>::value) && nlohmann::detail::has_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value) && (! nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value)), int>::type <anonymous> = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]/usr/include/nlohmann/json.hpp:2936:30:   required from ‘nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::operator ValueType() const [with ValueType = Eigen::Matrix<double, -1, -1>; typename std::enable_if<((((((! std::is_pointer<_Ptr>::value) && (! std::is_same<ValueType, nlohmann::detail::json_ref<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> > >::value)) && (! std::is_same<ValueType, typename StringType::value_type>::value)) && (! nlohmann::detail::is_basic_json<BasicJsonType>::value)) && (! std::is_same<ValueType, std::initializer_list<typename StringType::value_type> >::value)) && typename nlohmann::detail::detector<nlohmann::detail::nonesuch, void, nlohmann::detail::get_template_function, const nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>&, ValueType>::value_t:: value), int>::type <anonymous> = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]/home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/ModelParametersLWR.cpp:434:52:   required from here
/usr/include/nlohmann/detail/conversions/from_json.hpp:216:42: error: invalid use of void expression
         j.begin(), j.end(), std::inserter(ret, end(ret)),
                             ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/local/include/eigen3/Eigen/Core:152:0,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/dmpbbo_io/EigenBoostSerialization.hpp:29,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/Parameterizable.hpp:29,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/ModelParameters.hpp:27,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/ModelParametersLWR.hpp:27,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/ModelParametersLWR.cpp:24:
/usr/local/include/eigen3/Eigen/src/Core/StlIterators.h: In instantiation of ‘Eigen::DenseBase<Derived>::iterator Eigen::DenseBase<Derived>::end() [with Derived = Eigen::Matrix<double, -1, -1>; Eigen::DenseBase<Derived>::iterator = void]’:
/usr/include/c++/7/bits/range_access.h:69:25:   required from ‘decltype (__cont.end()) std::end(_Container&) [with _Container = Eigen::Matrix<double, -1, -1>; decltype (__cont.end()) = void]/usr/include/nlohmann/detail/conversions/from_json.hpp:216:51:   required from ‘void nlohmann::detail::from_json_array_impl(const BasicJsonType&, ConstructibleArrayType&, nlohmann::detail::priority_tag<0>) [with BasicJsonType = nlohmann::basic_json<>; ConstructibleArrayType = Eigen::Matrix<double, -1, -1>]/usr/include/nlohmann/detail/conversions/from_json.hpp:245:25:   required from ‘decltype (((nlohmann::detail::from_json_array_impl(j, arr, nlohmann::detail::priority_tag<3>{}), j.get<typename ConstructibleArrayType::value_type>()), void())) nlohmann::detail::from_json(const BasicJsonType&, ConstructibleArrayType&) [with BasicJsonType = nlohmann::basic_json<>; ConstructibleArrayType = Eigen::Matrix<double, -1, -1>; typename std::enable_if<(((nlohmann::detail::is_constructible_array_type<BasicJsonType, ConstructibleArrayType>::value && (! nlohmann::detail::is_constructible_object_type<BasicJsonType, ConstructibleObjectType>::value)) && (! nlohmann::detail::is_constructible_string_type<BasicJsonType, ConstructibleStringType>::value)) && (! nlohmann::detail::is_basic_json<T>::value)), int>::type <anonymous> = 0; decltype (((nlohmann::detail::from_json_array_impl(j, arr, nlohmann::detail::priority_tag<3>{}), j.get<typename ConstructibleArrayType::value_type>()), void())) = void; typename ConstructibleArrayType::value_type = double]/usr/include/nlohmann/detail/conversions/from_json.hpp:377:25:   required from ‘decltype ((nlohmann::detail::from_json(j, val), void())) nlohmann::detail::from_json_fn::operator()(const BasicJsonType&, T&) const [with BasicJsonType = nlohmann::basic_json<>; T = Eigen::Matrix<double, -1, -1>; decltype ((nlohmann::detail::from_json(j, val), void())) = void]/usr/include/nlohmann/adl_serializer.hpp:28:30:   required from ‘static decltype ((nlohmann::{anonymous}::from_json(forward<BasicJsonType>(j), val), void())) nlohmann::adl_serializer<T, SFINAE>::from_json(BasicJsonType&&, ValueType&) [with BasicJsonType = const nlohmann::basic_json<>&; ValueType = Eigen::Matrix<double, -1, -1>; <template-parameter-1-1> = Eigen::Matrix<double, -1, -1>; <template-parameter-1-2> = void; decltype ((nlohmann::{anonymous}::from_json(forward<BasicJsonType>(j), val), void())) = void]/usr/include/nlohmann/json.hpp:2643:45:   required from ‘ValueType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::get() const [with ValueTypeCV = Eigen::Matrix<double, -1, -1>; ValueType = Eigen::Matrix<double, -1, -1>; typename std::enable_if<(((! nlohmann::detail::is_basic_json<U>::value) && nlohmann::detail::has_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value) && (! nlohmann::detail::has_non_default_from_json<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>, ValueType>::value)), int>::type <anonymous> = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]/usr/include/nlohmann/json.hpp:2936:30:   required from ‘nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::operator ValueType() const [with ValueType = Eigen::Matrix<double, -1, -1>; typename std::enable_if<((((((! std::is_pointer<_Ptr>::value) && (! std::is_same<ValueType, nlohmann::detail::json_ref<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> > >::value)) && (! std::is_same<ValueType, typename StringType::value_type>::value)) && (! nlohmann::detail::is_basic_json<BasicJsonType>::value)) && (! std::is_same<ValueType, std::initializer_list<typename StringType::value_type> >::value)) && typename nlohmann::detail::detector<nlohmann::detail::nonesuch, void, nlohmann::detail::get_template_function, const nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>&, ValueType>::value_t:: value), int>::type <anonymous> = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]/home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/ModelParametersLWR.cpp:434:52:   required from here
/usr/local/include/eigen3/Eigen/src/Core/StlIterators.h:309:3: error: static assertion failed: YOU_TRIED_CALLING_A_VECTOR_METHOD_ON_A_MATRIX
   EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived);
   ^
In file included from /usr/local/include/eigen3/Eigen/Core:340:0,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/dmpbbo_io/EigenBoostSerialization.hpp:29,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/Parameterizable.hpp:29,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/ModelParameters.hpp:27,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/ModelParametersRBFN.hpp:27,
                 from /home/scu/workspace/ws_lhj/opensource/dmpbbo/src/functionapproximators/ModelParametersRBFN.cpp:24:
/usr/local/include/eigen3/Eigen/src/Core/StlIterators.h:328:10: error: expression list treated as compound expression in functional cast [-fpermissive]
   return const_iterator(derived(), size());
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/functionapproximators/CMakeFiles/functionapproximators.dir/build.make:313: recipe for target 'src/functionapproximators/CMakeFiles/functionapproximators.dir/ModelParametersLWR.cpp.o' failed
make[2]: *** [src/functionapproximators/CMakeFiles/functionapproximators.dir/ModelParametersLWR.cpp.o] Error 1
src/functionapproximators/CMakeFiles/functionapproximators.dir/build.make:327: recipe for target 'src/functionapproximators/CMakeFiles/functionapproximators.dir/ModelParametersRBFN.cpp.o' failed
make[2]: *** [src/functionapproximators/CMakeFiles/functionapproximators.dir/ModelParametersRBFN.cpp.o] Error 1
[ 52%] Linking CXX static library libbbo.a
[ 52%] Built target bbo
CMakeFiles/Makefile2:496: recipe for target 'src/functionapproximators/CMakeFiles/functionapproximators.dir/all' failed
make[1]: *** [src/functionapproximators/CMakeFiles/functionapproximators.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2

Thank you for your reply

stulp commented 2 years ago

Sorry, I cannot reproduce this on my machine (and travis is not longer functional for me to test it on other machines...) Some recommendations: