gopal.reddy@wipro.com wrote:
Hi All ,
 
    I am using boost in Opendiameter code using boost libraray, but i am not running into problems!
Details:
Tool(compiler) : MSVC60
OS : Windows XP
Boost Library Version: boost_1_33_1
Error : :\projects\diameter\opendiameter-1.0.7-h\include\framework.h(255) : error C2352: 'boost::shared_ptr<class AAA_GroupedJob>::get' : illegal call of non-static member function
        d:\projects\diameter\supporting softwares\boost_1_33_1\boost\shared_ptr.hpp(257) : see declaration of 'get'
        d:\projects\diameter\opendiameter-1.0.7-h\include\framework.h(255) : while compiling class-template member function 'class AAA_GroupedJob &__thiscall AAA_JobHandle<class AAA_GroupedJob>::Job(void)'
memory_manager.cxx
 
How it is used in framework.cpp (file) : 
  template <class JOB>
class AAA_JobHandle : public boost::shared_ptr<JOB>
{
 public:
  AAA_JobHandle(JOB* job) : boost::shared_ptr<JOB>(job, AAA_JobDeleter()) {}
 
  JOB& Job() { return (JOB&)*boost::shared_ptr<JOB>::get(); }
};
 
hi,

use f.ex:

JOB& Job() {return *get();}

--
HTH dave