suppress pragma warning and ignore failing test on msvc

This commit is contained in:
Hans Dembinski
2018-10-26 01:47:07 +02:00
parent 2212870fba
commit 876b951931
2 changed files with 6 additions and 0 deletions

View File

@@ -358,8 +358,10 @@ int main() {
"category(0, 1, 2, metadata=\"category\", options=overflow)");
test(axis::category<std::string>({"A", "B"}, "category2"),
"category(\"A\", \"B\", metadata=\"category2\", options=overflow)");
#ifndef _MSC_VER // fails on MSVC because demagnled name for user_defined looks different
test(axis::integer<int, user_defined>(-1, 1, {}, axis::option_type::none),
"integer(-1, 1, metadata=main::user_defined, options=none)");
#endif
}
// axis::variant support for minimal_axis