In file included from main.cpp:2:0:
SmartPointer.hpp:132:2: error: #endif without #if
#endif
^~~~~
SmartPointer.hpp: In instantiation of 'smart_pointer::SmartPointer<T, Allocator>::~SmartPointer() [with T = float; Allocator = std::allocator<float>]':
Test_SmartPointer.hpp:103:30: required from here
SmartPointer.hpp:58:13: error: 'class smart_pointer::SmartPointer<float, std::allocator<float> >::Core' has no member named 'ref_cout'; did you mean 'ref_count'?
this->core->ref_cout--;
~~~~~~~~~~~~^~~~~~~~
ref_count
SmartPointer.hpp:59:17: error: 'class smart_pointer::SmartPointer<float, std::allocator<float> >::Core' has no member named 'ref_cout'; did you mean 'ref_count'?
if (this->core->ref_cout == 0) {
~~~~~~~~~~~~^~~~~~~~
ref_count
SmartPointer.hpp: In instantiation of 'smart_pointer::SmartPointer<T, Allocator>& smart_pointer::SmartPointer<T, Allocator>::operator=(const smart_pointer::SmartPointer<T, Allocator>&) [with T = float; Allocator = std::allocator<float>]':
Test_SmartPointer.hpp:139:17: required from here
SmartPointer.hpp:34:1: error: value computed is not used [-Werror=unused-value]
~SmartPointer();
^
SmartPointer.hpp: In instantiation of 'smart_pointer::SmartPointer<T, Allocator>& smart_pointer::SmartPointer<T, Allocator>::operator=(smart_pointer::SmartPointer<T, Allocator>&&) [with T = float; Allocator = std::allocator<float>]':
Test_SmartPointer.hpp:187:32: required from here
SmartPointer.hpp:42:1: error: value computed is not used [-Werror=unused-value]
~SmartPointer();
^
SmartPointer.hpp: In instantiation of 'smart_pointer::SmartPointer<T, Allocator>& smart_pointer::SmartPointer<T, Allocator>::operator=(smart_pointer::SmartPointer<T, Allocator>::value_type*) [with T = float; Allocator = std::allocator<float>; smart_pointer::SmartPointer<T, Allocator>::value_type = float]':
Test_SmartPointer.hpp:194:16: required from here
SmartPointer.hpp:48:1: error: value computed is not used [-Werror=unused-value]
~SmartPointer();
^
SmartPointer.hpp: In instantiation of 'smart_pointer::SmartPointer<T, Allocator>::~SmartPointer() [with T = long unsigned int; Allocator = std::allocator<long unsigned int>]':
Test_SmartPointer.hpp:304:38: required from here
SmartPointer.hpp:58:13: error: 'class smart_pointer::SmartPointer<long unsigned int, std::allocator<long unsigned int> >::Core' has no member named 'ref_cout'; did you mean 'ref_count'?
this->core->ref_cout--;
~~~~~~~~~~~~^~~~~~~~
ref_count
SmartPointer.hpp:59:17: error: 'class smart_pointer::SmartPointer<long unsigned int, std::allocator<long unsigned int> >::Core' has no member named 'ref_cout'; did you mean 'ref_count'?
if (this->core->ref_cout == 0) {
~~~~~~~~~~~~^~~~~~~~
ref_count
SmartPointer.hpp: In instantiation of 'smart_pointer::SmartPointer<T, Allocator>::Core::Core(smart_pointer::SmartPointer<T, Allocator>::value_type*, std::size_t) [with T = float; Allocator = std::allocator<float>; smart_pointer::SmartPointer<T, Allocator>::value_type = float; std::size_t = long unsigned int]':
SmartPointer.hpp:20:14: required from 'smart_pointer::SmartPointer<T, Allocator>::SmartPointer(smart_pointer::SmartPointer<T, Allocator>::value_type*) [with T = float; Allocator = std::allocator<float>; smart_pointer::SmartPointer<T, Allocator>::value_type = float]'
Test_SmartPointer.hpp:103:30: required from here
SmartPointer.hpp:115:13: error: 'smart_pointer::SmartPointer<float, std::allocator<float> >::Core::ptr' will be initialized after [-Werror=reorder]
value_type* ptr;
^~~
SmartPointer.hpp:114:13: error: 'std::size_t smart_pointer::SmartPointer<float, std::allocator<float> >::Core::ref_count' [-Werror=reorder]
std::size_t ref_count;
^~~~~~~~~
SmartPointer.hpp:120:1: error: when initialized here [-Werror=reorder]
Core(value_type* ptr, std::size_t ref_count) : ptr(ptr), ref_count(ref_count) {
^~~~
SmartPointer.hpp: In instantiation of 'smart_pointer::SmartPointer<T, Allocator>::Core::Core(smart_pointer::SmartPointer<T, Allocator>::value_type*, std::size_t) [with T = long unsigned int; Allocator = std::allocator<long unsigned int>; smart_pointer::SmartPointer<T, Allocator>::value_type = long unsigned int; std::size_t = long unsigned int]':
SmartPointer.hpp:20:14: required from 'smart_pointer::SmartPointer<T, Allocator>::SmartPointer(smart_pointer::SmartPointer<T, Allocator>::value_type*) [with T = long unsigned int; Allocator = std::allocator<long unsigned int>; smart_pointer::SmartPointer<T, Allocator>::value_type = long unsigned int]'
Test_SmartPointer.hpp:304:38: required from here
SmartPointer.hpp:115:13: error: 'smart_pointer::SmartPointer<long unsigned int, std::allocator<long unsigned int> >::Core::ptr' will be initialized after [-Werror=reorder]
value_type* ptr;
^~~
SmartPointer.hpp:114:13: error: 'std::size_t smart_pointer::SmartPointer<long unsigned int, std::allocator<long unsigned int> >::Core::ref_count' [-Werror=reorder]
std::size_t ref_count;
^~~~~~~~~
SmartPointer.hpp:120:1: error: when initialized here [-Werror=reorder]
Core(value_type* ptr, std::size_t ref_count) : ptr(ptr), ref_count(ref_count) {
^~~~
cc1plus: all warnings being treated as errors
|