Skip to content

Commit

Permalink
use static_visitor as a base class for all visitors
Browse files Browse the repository at this point in the history
  • Loading branch information
artemp committed May 16, 2014
1 parent 87207d7 commit 48f78bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct Holder

}

struct print
struct print : util::static_visitor<>
{
template <typename T>
void operator() (T const& val) const
Expand All @@ -57,7 +57,7 @@ struct dummy : boost::static_visitor<>
};

template <typename V>
struct dummy2
struct dummy2 : util::static_visitor<>
{
dummy2(V & v)
: v_(v) {}
Expand Down

0 comments on commit 48f78bc

Please sign in to comment.