From 5bef4192820067eec6f10b0649eca8d72d611f17 Mon Sep 17 00:00:00 2001 From: Lucas Cimon <925560+Lucas-C@users.noreply.github.com> Date: Wed, 15 Jan 2025 14:22:34 +0100 Subject: [PATCH] Fixing Windows build by disabling TEST(init_from) with MSVC (#24) --- test/init_from_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/init_from_test.cc b/test/init_from_test.cc index c19d112..652ddcc 100644 --- a/test/init_from_test.cc +++ b/test/init_from_test.cc @@ -14,6 +14,7 @@ struct b { int y_; }; +#ifndef _MSC_VER // This use case does not work with MSVC TEST(init_from, init_from) { struct test {}; @@ -55,3 +56,4 @@ TEST(init_from, init_from) { auto tgt1 = utl::init_from(src); EXPECT_EQ(tgt1->str_, src.str_.get()); }; +#endif