Skip to content

Commit

Permalink
fix compile of test/variant
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed May 19, 2014
1 parent fc80297 commit da41701
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/variant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <cstdint>
#include <stdexcept>

struct check
struct check : util::static_visitor<>
{
template <typename T>
void operator() (T const& val) const
Expand All @@ -11,6 +11,7 @@ struct check
}
};


int main() {
typedef util::variant<bool,int, double> variant_type;
variant_type v(0);
Expand Down

0 comments on commit da41701

Please sign in to comment.