Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ 20%] Building CXX object src/shogun/CMakeFiles/libshogun.dir/evaluation/CrossValidationSplitting.cpp.o
- In file included from /Users/wiking/shogun/src/shogun/evaluation/CrossValidation.cpp:9:
- In file included from /Users/wiking/shogun/src/shogun/base/Parameter.h:14:
- In file included from /Users/wiking/shogun/src/shogun/base/DynArray.h:15:
- In file included from /Users/wiking/shogun/src/shogun/mathematics/Math.h:18:
- In file included from /Users/wiking/shogun/src/shogun/mathematics/Random.h:13:
- In file included from /Users/wiking/shogun/src/shogun/base/SGObject.h:14:
- In file included from /Users/wiking/shogun/src/shogun/base/AnyParameter.h:11:
- /Users/wiking/shogun/src/shogun/lib/any.h:324:11: error: no matching function for call to 'clone'
- return clone(existing);
- ^~~~~
- /Users/wiking/shogun/src/shogun/lib/any.h:686:16: note: in instantiation of function template specialization 'shogun::any_detail::clone<shogun::CrossValidationStorage>' requested here
- any_detail::clone(storage, value_of(typed_pointer<T>(from)));
- ^
- /Users/wiking/shogun/src/shogun/lib/any.h:744:17: note: in instantiation of member function 'shogun::NonOwningAnyPolicy<std::__1::shared_ptr<shogun::CrossValidationStorage> >::clone' requested here
- static Policy policy;
- ^
- /Users/wiking/shogun/src/shogun/lib/any.h:1033:14: note: in instantiation of function template specialization 'shogun::non_owning_policy<std::__1::shared_ptr<shogun::CrossValidationStorage> >' requested here
- return Any(non_owning_policy<T>(), v);
- ^
- /Users/wiking/shogun/src/shogun/base/SGObject.h:741:38: note: in instantiation of function template specialization 'shogun::make_any_ref<std::__1::shared_ptr<shogun::CrossValidationStorage> >' requested here
- create_parameter(tag, AnyParameter(make_any_ref(value), properties));
- ^
- /Users/wiking/shogun/src/shogun/lib/parameter_observers/ObservedValueTemplated.h:36:10: note: in instantiation of function template specialization 'shogun::CSGObject::watch_param<std::__1::shared_ptr<shogun::CrossValidationStorage> >' requested here
- this->watch_param(
- ^
- /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:2153:9: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
- : __value_(_VSTD::forward<_Args>(_VSTD::get<_Indexes>(__args))...) {}
- ^
- /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:3668:16: note: in instantiation of function template specialization 'std::__1::__compressed_pair<std::__1::allocator<shogun::ObservedValueTemplated<std::__1::shared_ptr<shogun::CrossValidationStorage> > >, shogun::ObservedValueTemplated<std::__1::shared_ptr<shogun::CrossValidationStorage> > >::__compressed_pair<std::__1::allocator<shogun::ObservedValueTemplated<std::__1::shared_ptr<shogun::CrossValidationStorage> > > &, long long &, std::__1::basic_string<char> &, std::__1::basic_string<char> &, std::__1::shared_ptr<shogun::CrossValidationStorage> &>' requested here
- : __data_(piecewise_construct, _VSTD::forward_as_tuple(__a),
- ^
- /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:4327:26: note: in instantiation of function template specialization 'std::__1::__shared_ptr_emplace<shogun::ObservedValueTemplated<std::__1::shared_ptr<shogun::CrossValidationStorage> >, std::__1::allocator<shogun::ObservedValueTemplated<std::__1::shared_ptr<shogun::CrossValidationStorage> > > >::__shared_ptr_emplace<long long &, std::__1::basic_string<char> &, std::__1::basic_string<char> &, std::__1::shared_ptr<shogun::CrossValidationStorage> &>' requested here
- ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
- ^
- /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:4706:29: note: in instantiation of function template specialization 'std::__1::shared_ptr<shogun::ObservedValueTemplated<std::__1::shared_ptr<shogun::CrossValidationStorage> > >::make_shared<long long &, std::__1::basic_string<char> &, std::__1::basic_string<char> &, std::__1::shared_ptr<shogun::CrossValidationStorage> &>' requested here
- return shared_ptr<_Tp>::make_shared(_VSTD::forward<_Args>(__args)...);
- ^
- /Users/wiking/shogun/src/shogun/lib/parameter_observers/ObservedValue.h:61:16: note: in instantiation of function template specialization 'std::__1::make_shared<shogun::ObservedValueTemplated<std::__1::shared_ptr<shogun::CrossValidationStorage> >, long long &, std::__1::basic_string<char> &, std::__1::basic_string<char> &, std::__1::shared_ptr<shogun::CrossValidationStorage> &>' requested here
- return std::make_shared<ObservedValueTemplated<T>>(step, name, description, value);
- ^
- /Users/wiking/shogun/src/shogun/evaluation/CrossValidation.cpp:115:22: note: in instantiation of function template specialization 'shogun::ObservedValue::make_observation<std::__1::shared_ptr<shogun::CrossValidationStorage> >' requested here
- ObservedValue::make_observation<std::shared_ptr<CrossValidationStorage>>(
- ^
- /Users/wiking/shogun/src/shogun/lib/any.h:312:15: note: candidate function template not viable: requires 2 arguments, but 1 was provided
- inline auto clone(void** storage, T& value)
- ^
- /Users/wiking/shogun/src/shogun/lib/any.h:321:15: note: candidate function template not viable: requires 2 arguments, but 1 was provided
- inline auto clone(void** storage, const std::shared_ptr<T>& value)
- ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement