Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file included from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/x86_64-pc-cygwin/bits/c++allocator.h:33:0,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/allocator.h:46,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/string:41,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/locale_classes.h:40,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/ios_base.h:41,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ios:42,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:38,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/iostream:39,
- from gamer_main.cpp:1:
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = GlobalStrategy; _Args = {NearestCoinStrategy*}; _Tp = GlobalStrategy]’:
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/alloc_traits.h:253:4: required from ‘static std::_Require<typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type> std::allocator_traits<_Alloc>::_S_construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = GlobalStrategy; _Args = {NearestCoinStrategy*}; _Alloc = std::allocator<GlobalStrategy>; std::_Require<typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type> = void]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/alloc_traits.h:399:57: required from ‘static decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) std::allocator_traits<_Alloc>::construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = GlobalStrategy; _Args = {NearestCoinStrategy*}; _Alloc = std::allocator<GlobalStrategy>; decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) = <type error>]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr_base.h:516:38: required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {NearestCoinStrategy*}; _Tp = GlobalStrategy; _Alloc = std::allocator<GlobalStrategy>; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ext/new_allocator.h:120:4: required from ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::_Sp_counted_ptr_inplace<GlobalStrategy, std::allocator<GlobalStrategy>, (__gnu_cxx::_Lock_policy)2u>; _Args = {const std::allocator<GlobalStrategy>, NearestCoinStrategy*}; _Tp = std::_Sp_counted_ptr_inplace<GlobalStrategy, std::allocator<GlobalStrategy>, (__gnu_cxx::_Lock_policy)2u>]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/alloc_traits.h:253:4: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr_base.h:620:37: required from ‘std::__shared_count<_Lp>::__shared_count(std::_Sp_make_shared_tag, _Tp*, const _Alloc&, _Args&& ...) [with _Tp = GlobalStrategy; _Alloc = std::allocator<GlobalStrategy>; _Args = {NearestCoinStrategy*}; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr_base.h:1090:35: required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<GlobalStrategy>; _Args = {NearestCoinStrategy*}; _Tp = GlobalStrategy; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr.h:316:64: required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<GlobalStrategy>; _Args = {NearestCoinStrategy*}; _Tp = GlobalStrategy]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr.h:588:39: required from ‘std::shared_ptr<_Tp1> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = GlobalStrategy; _Alloc = std::allocator<GlobalStrategy>; _Args = {NearestCoinStrategy*}]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr.h:604:42: required from ‘std::shared_ptr<_Tp1> std::make_shared(_Args&& ...) [with _Tp = GlobalStrategy; _Args = {NearestCoinStrategy*}]’
- options.h:47:90: required from here
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ext/new_allocator.h:120:4: error: invalid new-expression of abstract class type ‘GlobalStrategy’
- { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
- ^
- In file included from options.h:1:0,
- from gamer_main.cpp:7:
- strategy.h:51:7: note: because the following virtual functions are pure within ‘GlobalStrategy’:
- class GlobalStrategy {
- ^
- strategy.h:88:41: note: virtual std::deque<std::shared_ptr<StrategyTask> > GlobalStrategy::estimateActions(const World&, const Ball&)
- virtual std::deque<StrategyTaskPtr> estimateActions(const World &world, const Ball &ball) = 0;
- ^
- In file included from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/x86_64-pc-cygwin/bits/c++allocator.h:33:0,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/allocator.h:46,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/string:41,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/locale_classes.h:40,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/ios_base.h:41,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ios:42,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:38,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/iostream:39,
- from gamer_main.cpp:1:
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = GlobalStrategy; _Args = {KNearestCoinsStrategy*}; _Tp = GlobalStrategy]’:
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/alloc_traits.h:253:4: required from ‘static std::_Require<typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type> std::allocator_traits<_Alloc>::_S_construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = GlobalStrategy; _Args = {KNearestCoinsStrategy*}; _Alloc = std::allocator<GlobalStrategy>; std::_Require<typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type> = void]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/alloc_traits.h:399:57: required from ‘static decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) std::allocator_traits<_Alloc>::construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = GlobalStrategy; _Args = {KNearestCoinsStrategy*}; _Alloc = std::allocator<GlobalStrategy>; decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) = <type error>]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr_base.h:516:38: required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {KNearestCoinsStrategy*}; _Tp = GlobalStrategy; _Alloc = std::allocator<GlobalStrategy>; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ext/new_allocator.h:120:4: required from ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::_Sp_counted_ptr_inplace<GlobalStrategy, std::allocator<GlobalStrategy>, (__gnu_cxx::_Lock_policy)2u>; _Args = {const std::allocator<GlobalStrategy>, KNearestCoinsStrategy*}; _Tp = std::_Sp_counted_ptr_inplace<GlobalStrategy, std::allocator<GlobalStrategy>, (__gnu_cxx::_Lock_policy)2u>]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/alloc_traits.h:253:4: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr_base.h:620:37: required from ‘std::__shared_count<_Lp>::__shared_count(std::_Sp_make_shared_tag, _Tp*, const _Alloc&, _Args&& ...) [with _Tp = GlobalStrategy; _Alloc = std::allocator<GlobalStrategy>; _Args = {KNearestCoinsStrategy*}; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr_base.h:1090:35: required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<GlobalStrategy>; _Args = {KNearestCoinsStrategy*}; _Tp = GlobalStrategy; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr.h:316:64: required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<GlobalStrategy>; _Args = {KNearestCoinsStrategy*}; _Tp = GlobalStrategy]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr.h:588:39: required from ‘std::shared_ptr<_Tp1> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = GlobalStrategy; _Alloc = std::allocator<GlobalStrategy>; _Args = {KNearestCoinsStrategy*}]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr.h:604:42: required from ‘std::shared_ptr<_Tp1> std::make_shared(_Args&& ...) [with _Tp = GlobalStrategy; _Args = {KNearestCoinsStrategy*}]’
- options.h:49:118: required from here
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ext/new_allocator.h:120:4: error: invalid new-expression of abstract class type ‘GlobalStrategy’
- { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
- ^
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = MovementStrategy; _Args = {FirstMovementStrategyImpl*}; _Tp = MovementStrategy]’:
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/alloc_traits.h:253:4: required from ‘static std::_Require<typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type> std::allocator_traits<_Alloc>::_S_construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = MovementStrategy; _Args = {FirstMovementStrategyImpl*}; _Alloc = std::allocator<MovementStrategy>; std::_Require<typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type> = void]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/alloc_traits.h:399:57: required from ‘static decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) std::allocator_traits<_Alloc>::construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = MovementStrategy; _Args = {FirstMovementStrategyImpl*}; _Alloc = std::allocator<MovementStrategy>; decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) = <type error>]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr_base.h:516:38: required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {FirstMovementStrategyImpl*}; _Tp = MovementStrategy; _Alloc = std::allocator<MovementStrategy>; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ext/new_allocator.h:120:4: required from ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::_Sp_counted_ptr_inplace<MovementStrategy, std::allocator<MovementStrategy>, (__gnu_cxx::_Lock_policy)2u>; _Args = {const std::allocator<MovementStrategy>, FirstMovementStrategyImpl*}; _Tp = std::_Sp_counted_ptr_inplace<MovementStrategy, std::allocator<MovementStrategy>, (__gnu_cxx::_Lock_policy)2u>]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/alloc_traits.h:253:4: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr_base.h:620:37: required from ‘std::__shared_count<_Lp>::__shared_count(std::_Sp_make_shared_tag, _Tp*, const _Alloc&, _Args&& ...) [with _Tp = MovementStrategy; _Alloc = std::allocator<MovementStrategy>; _Args = {FirstMovementStrategyImpl*}; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr_base.h:1090:35: required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<MovementStrategy>; _Args = {FirstMovementStrategyImpl*}; _Tp = MovementStrategy; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr.h:316:64: required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<MovementStrategy>; _Args = {FirstMovementStrategyImpl*}; _Tp = MovementStrategy]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr.h:588:39: required from ‘std::shared_ptr<_Tp1> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = MovementStrategy; _Alloc = std::allocator<MovementStrategy>; _Args = {FirstMovementStrategyImpl*}]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr.h:604:42: required from ‘std::shared_ptr<_Tp1> std::make_shared(_Args&& ...) [with _Tp = MovementStrategy; _Args = {FirstMovementStrategyImpl*}]’
- options.h:56:99: required from here
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ext/new_allocator.h:120:4: error: invalid new-expression of abstract class type ‘MovementStrategy’
- In file included from options.h:1:0,
- from gamer_main.cpp:7:
- strategy.h:238:7: note: because the following virtual functions are pure within ‘MovementStrategy’:
- class MovementStrategy {
- ^
- strategy.h:240:26: note: virtual Acceleration MovementStrategy::getAcceleration(const World&, StrategyTaskPtr, const Ball&)
- virtual Acceleration getAcceleration(const World &world,
- ^
- In file included from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/x86_64-pc-cygwin/bits/c++allocator.h:33:0,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/allocator.h:46,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/string:41,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/locale_classes.h:40,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/ios_base.h:41,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ios:42,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:38,
- from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/iostream:39,
- from gamer_main.cpp:1:
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = MovementStrategy; _Args = {SecondMovementStrategyImpl*}; _Tp = MovementStrategy]’:
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/alloc_traits.h:253:4: required from ‘static std::_Require<typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type> std::allocator_traits<_Alloc>::_S_construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = MovementStrategy; _Args = {SecondMovementStrategyImpl*}; _Alloc = std::allocator<MovementStrategy>; std::_Require<typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type> = void]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/alloc_traits.h:399:57: required from ‘static decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) std::allocator_traits<_Alloc>::construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = MovementStrategy; _Args = {SecondMovementStrategyImpl*}; _Alloc = std::allocator<MovementStrategy>; decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) = <type error>]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr_base.h:516:38: required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {SecondMovementStrategyImpl*}; _Tp = MovementStrategy; _Alloc = std::allocator<MovementStrategy>; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ext/new_allocator.h:120:4: required from ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::_Sp_counted_ptr_inplace<MovementStrategy, std::allocator<MovementStrategy>, (__gnu_cxx::_Lock_policy)2u>; _Args = {const std::allocator<MovementStrategy>, SecondMovementStrategyImpl*}; _Tp = std::_Sp_counted_ptr_inplace<MovementStrategy, std::allocator<MovementStrategy>, (__gnu_cxx::_Lock_policy)2u>]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/alloc_traits.h:253:4: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr_base.h:620:37: required from ‘std::__shared_count<_Lp>::__shared_count(std::_Sp_make_shared_tag, _Tp*, const _Alloc&, _Args&& ...) [with _Tp = MovementStrategy; _Alloc = std::allocator<MovementStrategy>; _Args = {SecondMovementStrategyImpl*}; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr_base.h:1090:35: required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<MovementStrategy>; _Args = {SecondMovementStrategyImpl*}; _Tp = MovementStrategy; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr.h:316:64: required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<MovementStrategy>; _Args = {SecondMovementStrategyImpl*}; _Tp = MovementStrategy]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr.h:588:39: required from ‘std::shared_ptr<_Tp1> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = MovementStrategy; _Alloc = std::allocator<MovementStrategy>; _Args = {SecondMovementStrategyImpl*}]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr.h:604:42: required from ‘std::shared_ptr<_Tp1> std::make_shared(_Args&& ...) [with _Tp = MovementStrategy; _Args = {SecondMovementStrategyImpl*}]’
- options.h:58:100: required from here
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ext/new_allocator.h:120:4: error: invalid new-expression of abstract class type ‘MovementStrategy’
- { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
- ^
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = MovementStrategy; _Args = {RandomMovementStrategyImpl*}; _Tp = MovementStrategy]’:
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/alloc_traits.h:253:4: required from ‘static std::_Require<typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type> std::allocator_traits<_Alloc>::_S_construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = MovementStrategy; _Args = {RandomMovementStrategyImpl*}; _Alloc = std::allocator<MovementStrategy>; std::_Require<typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type> = void]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/alloc_traits.h:399:57: required from ‘static decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) std::allocator_traits<_Alloc>::construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = MovementStrategy; _Args = {RandomMovementStrategyImpl*}; _Alloc = std::allocator<MovementStrategy>; decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) = <type error>]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr_base.h:516:38: required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {RandomMovementStrategyImpl*}; _Tp = MovementStrategy; _Alloc = std::allocator<MovementStrategy>; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ext/new_allocator.h:120:4: required from ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::_Sp_counted_ptr_inplace<MovementStrategy, std::allocator<MovementStrategy>, (__gnu_cxx::_Lock_policy)2u>; _Args = {const std::allocator<MovementStrategy>, RandomMovementStrategyImpl*}; _Tp = std::_Sp_counted_ptr_inplace<MovementStrategy, std::allocator<MovementStrategy>, (__gnu_cxx::_Lock_policy)2u>]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/alloc_traits.h:253:4: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr_base.h:620:37: required from ‘std::__shared_count<_Lp>::__shared_count(std::_Sp_make_shared_tag, _Tp*, const _Alloc&, _Args&& ...) [with _Tp = MovementStrategy; _Alloc = std::allocator<MovementStrategy>; _Args = {RandomMovementStrategyImpl*}; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr_base.h:1090:35: required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<MovementStrategy>; _Args = {RandomMovementStrategyImpl*}; _Tp = MovementStrategy; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr.h:316:64: required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<MovementStrategy>; _Args = {RandomMovementStrategyImpl*}; _Tp = MovementStrategy]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr.h:588:39: required from ‘std::shared_ptr<_Tp1> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = MovementStrategy; _Alloc = std::allocator<MovementStrategy>; _Args = {RandomMovementStrategyImpl*}]’
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/shared_ptr.h:604:42: required from ‘std::shared_ptr<_Tp1> std::make_shared(_Args&& ...) [with _Tp = MovementStrategy; _Args = {RandomMovementStrategyImpl*}]’
- options.h:60:100: required from here
- /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ext/new_allocator.h:120:4: error: invalid new-expression of abstract class type ‘MovementStrategy’
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement