mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-06-25 12:01:36 +02:00
20 lines
396 B
C++
20 lines
396 B
C++
![]() |
//
|
||
|
// make_shared_fp_test.cpp
|
||
|
//
|
||
|
// Copyright 2010 Georg Fritzsche
|
||
|
//
|
||
|
// 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/make_shared.hpp>
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
typedef boost::shared_ptr<int>(*FP)();
|
||
|
FP fp = boost::make_shared<int>;
|
||
|
}
|