Yes, and thats what I am doing now, but it only gives me access as a std::iostream. I would really like access to the other functionality of my templated class. On Jul 8, 2008, at 9:15 AM, Roman Perepelitsa wrote:
Now that I have the streams, I have a class that communicates with the device and I would like to construct or initialize an object of that class with any one of the streams. I have yet to figure out how to form the constructor/function
Joshua Perry
writes: parameter to allow this. I've tried something like this, a stream of the base type of my devices: void init( stream< device<bidirectional> > str);
Something like this?
struct foo { void init(std::iostream& strm) { m_strm = &strm; } private: std::iostream* m_strm; };
Roman Perepelitsa.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users