forked from boostorg/smart_ptr
Fix msvc-8.0 failures
This commit is contained in:
@ -7,6 +7,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/smart_ptr.hpp>
|
#include <boost/smart_ptr.hpp>
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
#include <boost/config/workaround.hpp>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@ -14,5 +16,10 @@ int main()
|
|||||||
boost::shared_ptr<int[]> p2( new int[1] );
|
boost::shared_ptr<int[]> p2( new int[1] );
|
||||||
|
|
||||||
boost::make_shared<int>();
|
boost::make_shared<int>();
|
||||||
|
|
||||||
|
#if !BOOST_WORKAROUND(BOOST_MSVC, < 1500)
|
||||||
|
|
||||||
boost::make_shared<int[]>( 1 );
|
boost::make_shared<int[]>( 1 );
|
||||||
|
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
// https://www.boost.org/LICENSE_1_0.txt
|
// https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
#include <boost/smart_ptr.hpp>
|
#include <boost/smart_ptr.hpp>
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
#include <boost/config/workaround.hpp>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@ -10,5 +12,10 @@ int main()
|
|||||||
boost::shared_ptr<int[]> p2( new int[1] );
|
boost::shared_ptr<int[]> p2( new int[1] );
|
||||||
|
|
||||||
boost::make_shared<int>();
|
boost::make_shared<int>();
|
||||||
|
|
||||||
|
#if !BOOST_WORKAROUND(BOOST_MSVC, < 1500)
|
||||||
|
|
||||||
boost::make_shared<int[]>( 1 );
|
boost::make_shared<int[]>( 1 );
|
||||||
|
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user