Boost logo

Boost Users :

Subject: [Boost-users] [boost::math]binomial_coefficient compile error
From: Suresh Kumar (suresh.amritapuri_at_[hidden])
Date: 2010-10-06 21:26:02


Hi
this code gives a compile error.

#include <iostream>
#include <boost/math/special_functions/binomial.hpp>

using namespace std;

int main(){
  cout << boost::math::binomial_coefficient(10,1) << endl;
}

binom.cpp:8: error: no matching function for call to
‘binomial_coefficient(int, int)’

what is that I am missing?
thanks
suresh

-- 
R Suresh Kumar,
http://www.ee.ucr.edu/~sramachandranna
Sarve bhavantu sukinaha (May everyone be happy)
Sarve santu niramiyaha (May everyone be without affliction)
Sarve bhadrani pashyantu (May everyone see only goodness)
Ma kashchit dukha bhak bhavet (Let none be the victim of suffering)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net