LoopPerfect / neither

Either and Maybe monads for better error-handling in C++ ↔️
MIT License
249 stars 18 forks source link

Silence 'defined but not used' warning #25

Closed WojciechMigda closed 5 years ago

WojciechMigda commented 5 years ago

Compilation of maybe.hpp with g++ 7.3 results in the following warning being emitted (here with -Werror enabled):

neither/maybe.hpp:112:8: error: ‘bool neither::{anonymous}::equal(const neither::Maybe&, const neither::Maybe&)’ defined but not used [-Werror=unused-function] bool equal(Maybe const&, Maybe const&) {