More Constructor Frustration

should be simple, doesn't work:

1
2
3
int main()
const double ARRIVAL_PROB = 0.05;
Bool_source arrival(ARRIVAL_PROB);


1
2
3
4
Bool_source::Bool_source(double arr_prob)
{
   //don't do a single thing
}


error: 'Bool_source::Bool_source(double)' is private within this context

I'm just trying to create a simple object called "arrival" by passing a simple argument of type double. Why won't this compile? C++ is killing me.
Does your class definition have public: before the constructor declaration?
Nope. Thanks. I knew there was something obvious.
Topic archived. No new replies allowed.