In file included from main.cpp:2:0:
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:135:35: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
return p.get() == nullptr && get() == nullptr ||
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:135:35: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
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:144:37: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
return !(p.get() == nullptr && get() == nullptr ||
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:144:37: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
cc1plus: all warnings being treated as errors
|