title: Quantlib 1.5 build
body: <p>Under CentOS 7, I am using </p>
  
  <pre><code>[idf@node2 QuantLib-1.5]$ g++ -v
  Using built-in specs.
  COLLECT_GCC=g++
  COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.1/lto-wrapper
  Target: x86_64-redhat-linux
  Configured with: ../configure --prefix=/opt/rh/devtoolset-3/root/usr --mandir=/opt/rh/devtoolset-3/root/usr/share/man --infodir=/opt/rh/devtoolset-3/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,fortran,lto --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.9.1-20140922/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.9.1-20140922/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
  Thread model: posix
  gcc version 4.9.1 20140922 (Red Hat 4.9.1-10) (GCC) 
  [idf@node2 QuantLib-1.5]$ 
  </code></pre>
  
  <p>Using Boost.1_58, I get the following error while build QL 1.5</p>
  
  <pre><code>Making all in math
  make[4]: Entering directory `/mnt/gluster/Downloads/QuantLib-1.5/ql/experimental/math'
  /bin/sh ../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../ql  -I../../.. -I../../..   -g -O2 -MT convolvedstudentt.lo -MD -MP -MF .deps/convolvedstudentt.Tpo -c -o convolvedstudentt.lo convolvedstudentt.cpp
  libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../ql -I../../.. -I../../.. -g -O2 -MT convolvedstudentt.lo -MD -MP -MF .deps/convolvedstudentt.Tpo -c convolvedstudentt.cpp  -fPIC -DPIC -o .libs/convolvedstudentt.o
  convolvedstudentt.cpp: In member function 'QuantLib::Real QuantLib::InverseCumulativeBehrensFisher::operator()(QuantLib::Probability) const':
  convolvedstudentt.cpp:194:29: error: call of overloaded 'bind(QuantLib::Probability (QuantLib::CumulativeBehrensFisher::*)(QuantLib::Real) const, QuantLib::CumulativeBehrensFisher&amp;, boost::arg&lt;1&gt;&amp;)' is ambiguous
                   distrib_, _1)), accuracy_, (xMin+xMax)/2., xMin, xMax);
                               ^
  convolvedstudentt.cpp:194:29: note: candidates are:
  In file included from /usr/local/include/boost/bind.hpp:22:0,
                   from convolvedstudentt.cpp:30:
  /usr/local/include/boost/bind/bind.hpp:1602:5: note: boost::_bi::bind_t&lt;R, F, typename boost::_bi::list_av_2&lt;A1, A2&gt;::type&gt; boost::bind(F, A1, A2) [with R = double; F = double (QuantLib::CumulativeBehrensFisher::*)(double) const; A1 = QuantLib::CumulativeBehrensFisher; A2 = boost::arg&lt;1&gt;; typename boost::_bi::list_av_2&lt;A1, A2&gt;::type = boost::_bi::list2&lt;boost::_bi::value&lt;QuantLib::CumulativeBehrensFisher&gt;, boost::arg&lt;1&gt; &gt;]
       BOOST_BIND(F f, A1 a1, A2 a2)
       ^
  /usr/local/include/boost/bind/bind_mf_cc.hpp:74:5: note: boost::_bi::bind_t&lt;R, boost::_mfi::cmf1&lt;R, T, A1&gt;, typename boost::_bi::list_av_2&lt;A1, A2&gt;::type&gt; boost::bind(R (T::*)(B1) const, A1, A2) [with R = double; T = QuantLib::CumulativeBehrensFisher; B1 = double; A1 = QuantLib::CumulativeBehrensFisher; A2 = boost::arg&lt;1&gt;; typename boost::_bi::list_av_2&lt;A1, A2&gt;::type = boost::_bi::list2&lt;boost::_bi::value&lt;QuantLib::CumulativeBehrensFisher&gt;, boost::arg&lt;1&gt; &gt;]
       BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1) const, A1 a1, A2 a2)
       ^
  /usr/local/include/boost/bind/bind_mf_cc.hpp:96:5: note: boost::_bi::bind_t&lt;Rt2, boost::_mfi::cmf1&lt;R, T, B1&gt;, typename boost::_bi::list_av_2&lt;A1, A2&gt;::type&gt; boost::bind(R (T::*)(B1) const, A1, A2) [with Rt2 = double; R = double; T = QuantLib::CumulativeBehrensFisher; B1 = double; A1 = QuantLib::CumulativeBehrensFisher; A2 = boost::arg&lt;1&gt;; typename boost::_bi::list_av_2&lt;A1, A2&gt;::type = boost::_bi::list2&lt;boost::_bi::value&lt;QuantLib::CumulativeBehrensFisher&gt;, boost::arg&lt;1&gt; &gt;]
       BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1) const, A1 a1, A2 a2)
       ^
  make[4]: *** [convolvedstudentt.lo] Error 1
  make[4]: Leaving directory `/mnt/gluster/Downloads/QuantLib-1.5/ql/experimental/math'
  make[3]: *** [all-recursive] Error 1
  make[3]: Leaving directory `/mnt/gluster/Downloads/QuantLib-1.5/ql/experimental'
  make[2]: *** [all-recursive] Error 1
  make[2]: Leaving directory `/mnt/gluster/Downloads/QuantLib-1.5/ql'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/mnt/gluster/Downloads/QuantLib-1.5/ql'
  make: *** [all-recursive] Error 1
  [idf@node2 QuantLib-1.5]$ 
  </code></pre>
  
  <p>and</p>
  
  <pre><code>[idf@node2 math]$ make
  /bin/sh ../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../ql  -I../../.. -I../../..   -g -O2 -MT convolvedstudentt.lo -MD -MP -MF .deps/convolvedstudentt.Tpo -c -o convolvedstudentt.lo convolvedstudentt.cpp
  libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../ql -I../../.. -I../../.. -g -O2 -MT convolvedstudentt.lo -MD -MP -MF .deps/convolvedstudentt.Tpo -c convolvedstudentt.cpp  -fPIC -DPIC -o .libs/convolvedstudentt.o
  convolvedstudentt.cpp: In member function 'QuantLib::Real QuantLib::InverseCumulativeBehrensFisher::operator()(QuantLib::Probability) const':
  convolvedstudentt.cpp:194:54: error: wrong type argument to unary minus
   -                &amp;CumulativeBehrensFisher::operator (),
                                                        ^
  convolvedstudentt.cpp:196:53: error: wrong type argument to unary plus
   +                &amp;CumulativeBehrensFisher::operator(),
                                                       ^
  make: *** [convolvedstudentt.lo] Error 1
  [idf@node2 math]$ 
  </code></pre>