Fix msvc-8.0 failures

This commit is contained in:
Peter Dimov
2020-05-31 20:14:25 +03:00
parent 121312cc22
commit 6421394e70
2 changed files with 14 additions and 0 deletions

View File

@ -7,6 +7,8 @@
#endif
#include <boost/smart_ptr.hpp>
#include <boost/config.hpp>
#include <boost/config/workaround.hpp>
int main()
{
@ -14,5 +16,10 @@ int main()
boost::shared_ptr<int[]> p2( new int[1] );
boost::make_shared<int>();
#if !BOOST_WORKAROUND(BOOST_MSVC, < 1500)
boost::make_shared<int[]>( 1 );
#endif
}

View File

@ -3,6 +3,8 @@
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/smart_ptr.hpp>
#include <boost/config.hpp>
#include <boost/config/workaround.hpp>
int main()
{
@ -10,5 +12,10 @@ int main()
boost::shared_ptr<int[]> p2( new int[1] );
boost::make_shared<int>();
#if !BOOST_WORKAROUND(BOOST_MSVC, < 1500)
boost::make_shared<int[]>( 1 );
#endif
}