Files
smart_ptr/test/dll_test_lib.cpp
2018-09-17 21:50:47 +03:00

21 lines
446 B
C++

// Copyright 2018 Peter Dimov
//
// Distributed under the Boost Software License, Version 1.0.
//
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#include <boost/shared_ptr.hpp>
#include <boost/config.hpp>
#if defined(DLL_TEST_DYN_LINK)
# define EXPORT BOOST_SYMBOL_EXPORT
#else
# define EXPORT
#endif
EXPORT boost::shared_ptr<int> dll_test()
{
return boost::shared_ptr<int>( new int( 42 ) );
}