Boost logo

Boost :

From: Rob Stewart (stewart_at_[hidden])
Date: 2005-06-22 11:33:21

From: H <h.v.niekerk_at_[hidden]>
> Thank you for this. Question tho: when function1 is in a different .cpp
> file than main(), I would still have to declare FtInterface in that .cpp
> file, right?


   #ifndef _included_FtInterface_h
   #define _included_FtInterface_h

   struct FtInterface



   #include "FtInterface.h"

   void function1(FtInterface & fti)


   #include <memory>
   #include "FtInterface.h"

   int main()
      std::auto_ptr<FtInterface> fti(...);

> > are better places to handle such questions. It also appears that
> > you need to find a good tutorial on C++ to help you understand
> > things better.
> As I pointed out when I started this thread, I'm not very experienced
> and have been using about 6 different (online) tutorials about C++.

I was confirming that the problem wasn't with shared_ptr, but was
more fundamental. BTW, don't look at the implementation of Boost
libraries to help you figure out C++. They are too advanced for
that purpose.

> Thank you for your help.

No problem.

Rob Stewart                           stewart_at_[hidden]
Software Engineer           
Susquehanna International Group, LLP  using std::disclaimer;

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