mirror of
https://github.com/boostorg/openmethod.git
synced 2026-01-30 08:02:29 +00:00
fix warnings
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user