diff --git a/libdevcore/Visitor.h b/libdevcore/Visitor.h index 4030c928e..c7f117d38 100644 --- a/libdevcore/Visitor.h +++ b/libdevcore/Visitor.h @@ -27,7 +27,7 @@ namespace dev { /// Generic visitor used as follows: -/// boost::apply_visitor(GenericVisitor( +/// std::visit(GenericVisitor( /// [](Class1& _c) { _c.f(); }, /// [](Class2& _c) { _c.g(); } /// ), variant); @@ -59,7 +59,7 @@ struct GenericVisitor<>: public boost::static_visitor<> { }; /// Generic visitor with fallback: -/// boost::apply_visitor(GenericFallbackVisitor( +/// std::visit(GenericFallbackVisitor( /// [](Class1& _c) { _c.f(); }, /// [](Class2& _c) { _c.g(); } /// ), variant); @@ -92,7 +92,7 @@ struct GenericFallbackVisitor<>: public boost::static_visitor<> { }; /// Generic visitor with fallback that can return a value: -/// boost::apply_visitor(GenericFallbackReturnsVisitor( +/// std::visit(GenericFallbackReturnsVisitor( /// [](Class1& _c) { return _c.f(); }, /// [](Class2& _c) { return _c.g(); } /// ), variant);