Commits

Matt Oswald committed dbf193f

g++ didn't like a tuple with just a std::function member for some reason, too tired to figure out why

  • Participants
  • Parent commits 6fd2541

Comments (0)

Files changed (1)

File Tests/UnitTests/Theory.cpp

     Assert.Throws<xUnitpp::xUnitAssert>([&]() { Assert.Empty(str); });
 }
 
-// !!!g++ figure out why g++ barfs on this one
-#if defined(WIN32)
-DATA_THEORY("TestingLambdasAsData", (std::function<void()> fn),
-([]() -> std::vector<std::tuple<std::function<void()>>>
+DATA_THEORY("TestingLambdasAsData", (std::function<void()> fn, int),
+([]() -> std::vector<std::tuple<std::function<void()>, int>>
 {
-    std::vector<std::tuple<std::function<void()>>> data;
-    data.emplace_back([]() { });
+    std::vector<std::tuple<std::function<void()>, int>> data;
+    data.emplace_back([]() { }, 0);
     return data;
 })
 )
 {
     Assert.DoesNotThrow(fn);
 }
-#endif
 
 }