make_shared_fp_test.cpp 396 B

12345678910111213141516171819
  1. //
  2. // make_shared_fp_test.cpp
  3. //
  4. // Copyright 2010 Georg Fritzsche
  5. //
  6. // Distributed under the Boost Software License, Version 1.0.
  7. // See accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt
  9. //
  10. #include <boost/shared_ptr.hpp>
  11. #include <boost/make_shared.hpp>
  12. int main()
  13. {
  14. typedef boost::shared_ptr<int>(*FP)();
  15. FP fp = boost::make_shared<int>;
  16. }