• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //  Copyright John Maddock 2006.
2 //  Use, modification and distribution are subject to the
3 //  Boost Software License, Version 1.0. (See accompanying file
4 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 //
7 // MSVC-7.1 has a problem with our tests: sometimes when a
8 // function is used via a function pointer, it does *not*
9 // instantiate the template, leading to unresolved externals
10 // at link time.  Therefore we create a small library that
11 // instantiates "everything", and link all our tests against
12 // it for msvc-7.1 only.  Note that due to some BBv2 limitations
13 // we can not place this in a sub-folder of the test directory
14 // as that would lead to recursive project dependencies...
15 //
16 
17 #define BOOST_MATH_ASSERT_UNDEFINED_POLICY false
18 #define BOOST_MATH_INSTANTIATE_MINIMUM
19 #include <boost/math/concepts/real_concept.hpp>
20 #include "../test/compile_test/instantiate.hpp"
21 
some_proc()22 void some_proc()
23 {
24    instantiate(float(0));
25    instantiate(double(0));
26    instantiate(static_cast<long double>(0));
27    instantiate(static_cast<boost::math::concepts::real_concept>(0));
28 }
29 
30 
31 
32