fix warnings

This commit is contained in:
Jean-Louis Leroy
2025-06-21 08:47:27 -04:00
parent a0720ca8b6
commit d352a55d58
19 changed files with 130 additions and 108 deletions

View File

@@ -44,7 +44,7 @@ BOOST_OPENMETHOD_CLASSES(Animal, Cat, Dog);
BOOST_OPENMETHOD(trick, (std::ostream&, virtual_ptr<Animal>), void);
BOOST_OPENMETHOD_OVERRIDE(
trick, (std::ostream & os, virtual_ptr<Dog> dog), void) {
trick, (std::ostream & os, virtual_ptr<Dog> /*dog*/), void) {
os << "spin\n";
}
@@ -58,7 +58,7 @@ auto main() -> int {
for (auto animal : animals) {
try {
trick(std::cout, *animal);
} catch (bom::not_implemented_error) {
} catch (bom::not_implemented_error&) {
std::cout << "not implemented\n";
}
}