|
Boost Users : |
From: David Klein (dave_chp_at_[hidden])
Date: 2007-02-07 10:19:55
gopal.reddy_at_[hidden] 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net