Advertisement
Guest User

Untitled

a guest
May 25th, 2015
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.55 KB | None | 0 0
  1. 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,
  2. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/allocator.h:46,
  3. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/string:41,
  4. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/locale_classes.h:40,
  5. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/ios_base.h:41,
  6. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ios:42,
  7. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:38,
  8. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/iostream:39,
  9. from gamer_main.cpp:1:
  10. /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]’:
  11. /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]’
  12. /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>]’
  13. /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]’
  14. /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>]’
  15. /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 ]
  16. /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]’
  17. /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]’
  18. /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]’
  19. /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*}]’
  20. /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*}]’
  21. options.h:47:90: required from here
  22. /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’
  23. { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
  24. ^
  25. In file included from options.h:1:0,
  26. from gamer_main.cpp:7:
  27. strategy.h:51:7: note: because the following virtual functions are pure within ‘GlobalStrategy’:
  28. class GlobalStrategy {
  29. ^
  30. strategy.h:88:41: note: virtual std::deque<std::shared_ptr<StrategyTask> > GlobalStrategy::estimateActions(const World&, const Ball&)
  31. virtual std::deque<StrategyTaskPtr> estimateActions(const World &world, const Ball &ball) = 0;
  32. ^
  33. 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,
  34. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/allocator.h:46,
  35. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/string:41,
  36. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/locale_classes.h:40,
  37. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/ios_base.h:41,
  38. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ios:42,
  39. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:38,
  40. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/iostream:39,
  41. from gamer_main.cpp:1:
  42. /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]’:
  43. /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]’
  44. /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>]’
  45. /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]’
  46. /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>]’
  47. /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 ]
  48. /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]’
  49. /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]’
  50. /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]’
  51. /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*}]’
  52. /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*}]’
  53. options.h:49:118: required from here
  54. /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’
  55. { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
  56. ^
  57. /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]’:
  58. /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]’
  59. /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>]’
  60. /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]’
  61. /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>]’
  62. /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 ]
  63. /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]’
  64. /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]’
  65. /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]’
  66. /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*}]’
  67. /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*}]’
  68. options.h:56:99: required from here
  69. /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’
  70. In file included from options.h:1:0,
  71. from gamer_main.cpp:7:
  72. strategy.h:238:7: note: because the following virtual functions are pure within ‘MovementStrategy’:
  73. class MovementStrategy {
  74. ^
  75. strategy.h:240:26: note: virtual Acceleration MovementStrategy::getAcceleration(const World&, StrategyTaskPtr, const Ball&)
  76. virtual Acceleration getAcceleration(const World &world,
  77. ^
  78. 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,
  79. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/allocator.h:46,
  80. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/string:41,
  81. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/locale_classes.h:40,
  82. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/bits/ios_base.h:41,
  83. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ios:42,
  84. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/ostream:38,
  85. from /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/iostream:39,
  86. from gamer_main.cpp:1:
  87. /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]’:
  88. /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]’
  89. /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>]’
  90. /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]’
  91. /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>]’
  92. /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 ]
  93. /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]’
  94. /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]’
  95. /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]’
  96. /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*}]’
  97. /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*}]’
  98. options.h:58:100: required from here
  99. /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’
  100. { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
  101. ^
  102. /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]’:
  103. /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]’
  104. /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>]’
  105. /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]’
  106. /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>]’
  107. /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 ]
  108. /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]’
  109. /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]’
  110. /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]’
  111. /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*}]’
  112. /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*}]’
  113. options.h:60:100: required from here
  114. /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