Skip to content

Commit

Permalink
fix #12
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed May 19, 2014
1 parent 62e7165 commit c0593af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/binary_visitor_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ struct javascript_equal

int main (/*int argc, char** argv*/)
{
typedef util::variant<bool, std::uint64_t, double, std::string> variant_type;
typedef util::variant<bool, std::int64_t, std::uint64_t, double, std::string> variant_type;
variant_type v0(3.14159);
variant_type v1(std::string("3.14159"));
variant_type v2(1ULL);
variant_type v2(std::uint64_t(1));

std::cerr << v0 << " == " << v1 << " -> "
<< std::boolalpha << util::apply_visitor(v0, v1, test::javascript_equal_visitor()) << std::endl;
Expand All @@ -109,8 +109,8 @@ int main (/*int argc, char** argv*/)
std::vector<variant_type> vec;

vec.emplace_back(std::string("1"));
vec.push_back(variant_type(2ULL));
vec.push_back(variant_type(3ULL));
vec.push_back(variant_type(std::uint64_t(2)));
vec.push_back(variant_type(std::uint64_t(3)));
vec.push_back(std::string("3.14159"));
vec.emplace_back(3.14159);

Expand Down

0 comments on commit c0593af

Please sign in to comment.