Boost logo

Boost Users :

From: gopal.reddy_at_[hidden]
Date: 2007-02-07 09:34:53


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(); }
};
 
I seem to be doing some thing wrong with the above. Any help on how to
go about resolving the problem would be appreciated!
 
Thanks,
Gopal

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com



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