Boost logo

Boost :

From: Yingwei Zhang (ywz_at_[hidden])
Date: 2008-02-25 16:58:34

HI, in my spirit grammar file, I use boost::bind to bind a template function:
  boos::bind(&std::vector<uint32_t>::push_back)(my_vector, i);

This compiles fine. However, since this is the only usage of std::vector<uint32_t>::push_back, this function is not instantiated and linker complains that this function is not defined.

I could write a wrapper function around std::vector<uint32_t> to force its instantiation. My questions is: is there a more elegant solution in this scenario?

Yingwei Zhang

Boost list run by bdawes at, gregod at, cpdaniel at, john at