ID 5776271
Пользователь Морозов Игнат Владимирович
Время 05:15<< 15.11.2021 05:16 (26 д. 03:17) 07:28>>
Обработка 05:16 ... 05:16 (2,95 сек.)
Файл 5776271.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 2, осень 2021
Задача C: Smart Pointer
Набор тестов
Ограничения Время: 25с Память: 512Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
In file included from main.cpp:2:0:
SmartPointer.hpp:135:5: error: 'Core' does not name a type
     Core* core = nullptr;
     ^~~~
SmartPointer.hpp: In destructor 'smart_pointer::SmartPointer<T, Allocator>::~SmartPointer()':
SmartPointer.hpp:63:24: error: 'core' was not declared in this scope
                 delete core;
                        ^~~~
SmartPointer.hpp:63:24: note: suggested alternative: 'Core'
                 delete core;
                        ^~~~
                        Core
SmartPointer.hpp:68:20: error: 'core' was not declared in this scope
             delete core;
                    ^~~~
SmartPointer.hpp:68:20: note: suggested alternative: 'Core'
             delete core;
                    ^~~~
                    Core
In file included from SmartPointer.hpp:3:0,
                 from main.cpp:2:
Test_SmartPointer.hpp: In function 'void test::test(const string&) [with __TEST_CLASSNAME__ = smart_pointer::SmartPointer<float, std::allocator<float> >; std::__cxx11::string = std::__cxx11::basic_string<char>]':
Test_SmartPointer.hpp:99:77: error: 'core' is not a member of 'SmartPointer__type_t {aka smart_pointer::SmartPointer<float, std::allocator<float> >}'
         ASSERT(sizeof(SmartPointer__type_t) == sizeof(SmartPointer__type_t::core));
                                                                             ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:104:21: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr.core == nullptr);
                     ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:110:21: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr.core != nullptr);
                     ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:115:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:120:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core != nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:121:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == sptr1.core);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:121:36: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == sptr1.core);
                                    ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:126:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:127:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:133:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:134:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core != nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:140:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:141:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:148:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:149:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:156:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core != nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:157:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == sptr1.core);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:157:36: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == sptr1.core);
                                    ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:165:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core != nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:166:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == sptr1.core);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:166:36: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == sptr1.core);
                                    ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:179:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core != nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:180:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == sptr1.core);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:180:36: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core == sptr1.core);
                                    ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:188:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr1.core == nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:189:22: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr2.core != nullptr);
                      ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:195:21: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr.core == nullptr);
                     ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:201:21: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr.core == nullptr);
                     ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:208:21: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr.core != nullptr);
                     ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:215:21: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
         ASSERT(sptr.core != nullptr);
                     ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
Test_SmartPointer.hpp:224:25: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
             ASSERT(sptr.core != nullptr);
                         ^
Test.hpp:39:28: note: in definition of macro 'ASSERT'
     if (!static_cast<bool>(EXPR)) { \
                            ^~~~
In file included from main.cpp:3:0:
Test_SmartPointer.hpp:225:24: error: 'using SmartPointer__type_t = class smart_pointer::SmartPointer<float, std::allocator<float> > {aka class smart_pointer::SmartPointer<float, std::allocator<float> >}' has no member named 'core'; did you mean 'Core'?
             if (!(sptr.core != nullptr)) {
                        ^~~~
                        Core
In file included from main.cpp:2:0:
SmartPointer.hpp: In instantiation of '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:25:15: error: 'class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         this->core = new Core(ptr);
         ~~~~~~^~~~
         Core
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:61:19: error: 'class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         if (this->core != nullptr) {
             ~~~~~~^~~~
             Core
SmartPointer.hpp:62:23: error: 'class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
             if (this->core->count_owners == 1) {
                 ~~~~~~^~~~
                 Core
SmartPointer.hpp:65:23: error: 'class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
                 this->core->count_owners -= 1;
                 ~~~~~~^~~~
                 Core
SmartPointer.hpp: In instantiation of 'smart_pointer::SmartPointer<T, Allocator>::SmartPointer(const smart_pointer::SmartPointer<T, Allocator>&) [with T = float; Allocator = std::allocator<float>]':
Test_SmartPointer.hpp:114:48:   required from here
SmartPointer.hpp:30:15: error: 'class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         this->core = otherPointer.core;
         ~~~~~~^~~~
         Core
SmartPointer.hpp:30:35: error: 'const class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         this->core = otherPointer.core;
                      ~~~~~~~~~~~~~^~~~
                      Core
SmartPointer.hpp: In instantiation of 'smart_pointer::SmartPointer<T, Allocator>::SmartPointer(smart_pointer::SmartPointer<T, Allocator>&&) [with T = float; Allocator = std::allocator<float>]':
Test_SmartPointer.hpp:125:59:   required from here
SmartPointer.hpp:36:15: error: 'class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         this->core = *oldPointer.core;
         ~~~~~~^~~~
         Core
SmartPointer.hpp:36:34: error: 'class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         this->core = *oldPointer.core;
                       ~~~~~~~~~~~^~~~
                       Core
SmartPointer.hpp:37:9: error: type 'using value_type = float {aka float}' argument given to 'delete', expected pointer
         delete* oldPointer;
         ^~~~~~
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:43:15: error: 'class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         this->core = otherPointer.core;
         ~~~~~~^~~~
         Core
SmartPointer.hpp:43:35: error: 'const class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         this->core = otherPointer.core;
                      ~~~~~~~~~~~~~^~~~
                      Core
SmartPointer.hpp:45:16: error: invalid initialization of non-const reference of type 'smart_pointer::SmartPointer<float, std::allocator<float> >&' from an rvalue of type 'smart_pointer::SmartPointer<float, std::allocator<float> >*'
         return this;
                ^~~~
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:51:15: error: 'class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         this->core = *oldPointer->core;
         ~~~~~~^~~~
         Core
SmartPointer.hpp:51:35: error: request for member 'core' in '*(& oldPointer)->smart_pointer::SmartPointer<float, std::allocator<float> >::operator->()', which is of non-class type 'smart_pointer::SmartPointer<float, std::allocator<float> >::value_type {aka float}'
         this->core = *oldPointer->core;
                       ~~~~~~~~~~~~^~~~
SmartPointer.hpp:52:9: error: type 'using value_type = float {aka float}' argument given to 'delete', expected pointer
         delete* oldPointer;
         ^~~~~~
SmartPointer.hpp:53:16: error: invalid initialization of non-const reference of type 'smart_pointer::SmartPointer<float, std::allocator<float> >&' from an rvalue of type 'smart_pointer::SmartPointer<float, std::allocator<float> >*'
         return this;
                ^~~~
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:58:15: error: 'class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         this->core = new Core(ptr);
         ~~~~~~^~~~
         Core
SmartPointer.hpp:59:5: error: no return statement in function returning non-void [-Werror=return-type]
     }
     ^
SmartPointer.hpp: In instantiation of 'smart_pointer::SmartPointer<T, Allocator>::value_type& smart_pointer::SmartPointer<T, Allocator>::operator*() const [with T = float; Allocator = std::allocator<float>; smart_pointer::SmartPointer<T, Allocator>::value_type = float]':
Test_SmartPointer.hpp:233:9:   required from here
SmartPointer.hpp:82:19: error: 'const class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         if (this->core->ptr == nullptr) {
             ~~~~~~^~~~
             Core
SmartPointer.hpp:85:28: error: 'const class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
             return *(this->core->ptr);
                      ~~~~~~^~~~
                      Core
SmartPointer.hpp: In instantiation of 'smart_pointer::SmartPointer<T, Allocator>::value_type& smart_pointer::SmartPointer<T, Allocator>::operator*() [with T = float; Allocator = std::allocator<float>; smart_pointer::SmartPointer<T, Allocator>::value_type = float]':
Test_SmartPointer.hpp:238:9:   required from here
SmartPointer.hpp:75:19: error: 'class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         if (this->core->ptr == nullptr) {
             ~~~~~~^~~~
             Core
SmartPointer.hpp:78:28: error: 'class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
             return *(this->core->ptr);
                      ~~~~~~^~~~
                      Core
SmartPointer.hpp: In instantiation of 'smart_pointer::SmartPointer<T, Allocator>::value_type* smart_pointer::SmartPointer<T, Allocator>::operator->() const [with T = float; Allocator = std::allocator<float>; smart_pointer::SmartPointer<T, Allocator>::value_type = float]':
Test_SmartPointer.hpp:251:9:   required from here
SmartPointer.hpp:91:22: error: 'const class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         return this->core->ptr;
                ~~~~~~^~~~
                Core
SmartPointer.hpp: In instantiation of 'smart_pointer::SmartPointer<T, Allocator>::value_type* smart_pointer::SmartPointer<T, Allocator>::get() const [with T = float; Allocator = std::allocator<float>; smart_pointer::SmartPointer<T, Allocator>::value_type = float]':
Test_SmartPointer.hpp:270:9:   required from here
SmartPointer.hpp:95:22: error: 'const class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         return this->core->ptr;
                ~~~~~~^~~~
                Core
SmartPointer.hpp: In instantiation of 'smart_pointer::SmartPointer<T, Allocator>::operator bool() const [with T = float; Allocator = std::allocator<float>]':
Test_SmartPointer.hpp:289:9:   required from here
SmartPointer.hpp:100:19: error: 'const class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         if (this->core->ptr == nullptr) {
             ~~~~~~^~~~
             Core
SmartPointer.hpp: In instantiation of 'bool smart_pointer::SmartPointer<T, Allocator>::operator==(const smart_pointer::SmartPointer<U, AnotherAllocator>&) const [with U = float; AnotherAllocator = std::allocator<float>; T = float; Allocator = std::allocator<float>]':
Test_SmartPointer.hpp:299:9:   required from here
SmartPointer.hpp:111:22: error: 'const class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         return this->core->ptr == otherPointer->core->ptr;
                ~~~~~~^~~~
                Core
SmartPointer.hpp:111:49: error: request for member 'core' in '*(& otherPointer)->smart_pointer::SmartPointer<float, std::allocator<float> >::operator->()', which is of non-class type 'smart_pointer::SmartPointer<float, std::allocator<float> >::value_type {aka float}'
         return this->core->ptr == otherPointer->core->ptr;
                                   ~~~~~~~~~~~~~~^~~~
SmartPointer.hpp: In instantiation of '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:25:15: error: 'class smart_pointer::SmartPointer<long unsigned int, std::allocator<long unsigned int> >' has no member named 'core'; did you mean 'Core'?
         this->core = new Core(ptr);
         ~~~~~~^~~~
         Core
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:61:19: error: 'class smart_pointer::SmartPointer<long unsigned int, std::allocator<long unsigned int> >' has no member named 'core'; did you mean 'Core'?
         if (this->core != nullptr) {
             ~~~~~~^~~~
             Core
SmartPointer.hpp:62:23: error: 'class smart_pointer::SmartPointer<long unsigned int, std::allocator<long unsigned int> >' has no member named 'core'; did you mean 'Core'?
             if (this->core->count_owners == 1) {
                 ~~~~~~^~~~
                 Core
SmartPointer.hpp:65:23: error: 'class smart_pointer::SmartPointer<long unsigned int, std::allocator<long unsigned int> >' has no member named 'core'; did you mean 'Core'?
                 this->core->count_owners -= 1;
                 ~~~~~~^~~~
                 Core
SmartPointer.hpp: In instantiation of 'bool smart_pointer::SmartPointer<T, Allocator>::operator==(const smart_pointer::SmartPointer<U, AnotherAllocator>&) const [with U = long unsigned int; AnotherAllocator = std::allocator<long unsigned int>; T = float; Allocator = std::allocator<float>]':
Test_SmartPointer.hpp:305:9:   required from here
SmartPointer.hpp:111:22: error: 'const class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         return this->core->ptr == otherPointer->core->ptr;
                ~~~~~~^~~~
                Core
SmartPointer.hpp:111:49: error: request for member 'core' in '*(& otherPointer)->smart_pointer::SmartPointer<long unsigned int, std::allocator<long unsigned int> >::operator->()', which is of non-class type 'smart_pointer::SmartPointer<long unsigned int, std::allocator<long unsigned int> >::value_type {aka long unsigned int}'
         return this->core->ptr == otherPointer->core->ptr;
                                   ~~~~~~~~~~~~~~^~~~
SmartPointer.hpp: In instantiation of 'bool smart_pointer::SmartPointer<T, Allocator>::operator!=(const smart_pointer::SmartPointer<U, AnotherAllocator>&) const [with U = float; AnotherAllocator = std::allocator<float>; T = float; Allocator = std::allocator<float>]':
Test_SmartPointer.hpp:349:9:   required from here
SmartPointer.hpp:118:22: error: 'const class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         return this->core->ptr != otherPointer->core->ptr;
                ~~~~~~^~~~
                Core
SmartPointer.hpp:118:49: error: request for member 'core' in '*(& otherPointer)->smart_pointer::SmartPointer<float, std::allocator<float> >::operator->()', which is of non-class type 'smart_pointer::SmartPointer<float, std::allocator<float> >::value_type {aka float}'
         return this->core->ptr != otherPointer->core->ptr;
                                   ~~~~~~~~~~~~~~^~~~
SmartPointer.hpp: In instantiation of 'bool smart_pointer::SmartPointer<T, Allocator>::operator!=(const smart_pointer::SmartPointer<U, AnotherAllocator>&) const [with U = long unsigned int; AnotherAllocator = std::allocator<long unsigned int>; T = float; Allocator = std::allocator<float>]':
Test_SmartPointer.hpp:355:9:   required from here
SmartPointer.hpp:118:22: error: 'const class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         return this->core->ptr != otherPointer->core->ptr;
                ~~~~~~^~~~
                Core
SmartPointer.hpp:118:49: error: request for member 'core' in '*(& otherPointer)->smart_pointer::SmartPointer<long unsigned int, std::allocator<long unsigned int> >::operator->()', which is of non-class type 'smart_pointer::SmartPointer<long unsigned int, std::allocator<long unsigned int> >::value_type {aka long unsigned int}'
         return this->core->ptr != otherPointer->core->ptr;
                                   ~~~~~~~~~~~~~~^~~~
SmartPointer.hpp: In instantiation of 'std::size_t smart_pointer::SmartPointer<T, Allocator>::count_owners() const [with T = float; Allocator = std::allocator<float>; std::size_t = long unsigned int]':
Test_SmartPointer.hpp:398:9:   required from here
SmartPointer.hpp:124:22: error: 'const class smart_pointer::SmartPointer<float, std::allocator<float> >' has no member named 'core'; did you mean 'Core'?
         return this->core->count_owners;
                ~~~~~~^~~~
                Core
SmartPointer.hpp: In member function 'smart_pointer::SmartPointer<T, Allocator>::operator bool() const [with T = float; Allocator = std::allocator<float>]':
SmartPointer.hpp:105:5: error: control reaches end of non-void function [-Werror=return-type]
     }
     ^
cc1plus: all warnings being treated as errors
0.188s 0.009s 9