From 6421394e701bd0a54d1694ad2ab99e6be2a57ff0 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 31 May 2020 20:14:25 +0300 Subject: [PATCH] Fix msvc-8.0 failures --- test/sp_override_test.cpp | 7 +++++++ test/sp_pedantic_test.cpp | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/test/sp_override_test.cpp b/test/sp_override_test.cpp index 8eb72dd..6284376 100644 --- a/test/sp_override_test.cpp +++ b/test/sp_override_test.cpp @@ -7,6 +7,8 @@ #endif #include +#include +#include int main() { @@ -14,5 +16,10 @@ int main() boost::shared_ptr p2( new int[1] ); boost::make_shared(); + +#if !BOOST_WORKAROUND(BOOST_MSVC, < 1500) + boost::make_shared( 1 ); + +#endif } diff --git a/test/sp_pedantic_test.cpp b/test/sp_pedantic_test.cpp index 92df9c3..884ec6b 100644 --- a/test/sp_pedantic_test.cpp +++ b/test/sp_pedantic_test.cpp @@ -3,6 +3,8 @@ // https://www.boost.org/LICENSE_1_0.txt #include +#include +#include int main() { @@ -10,5 +12,10 @@ int main() boost::shared_ptr p2( new int[1] ); boost::make_shared(); + +#if !BOOST_WORKAROUND(BOOST_MSVC, < 1500) + boost::make_shared( 1 ); + +#endif }