ID 5778127
Пользователь Долматов Кирилл Дмитриевич
Время 14:07<< 15.11.2021 14:09 (26 д. 12:09) 14:10>>
Обработка 14:09 ... 14:09 (3,75 сек.)
Файл 5778127.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: 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:69:23: error: invalid conversion from 'std::size_t {aka long unsigned int}' to 'smart_pointer::SmartPointer<float, std::allocator<float> >::value_type* {aka float*}' [-fpermissive]
         p.core->m_obj = p.core->count_ptr = 0;
         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
0.041s 0.011s 9