Hi,

 

I'm trying to get the machine name and handle number and name from the message 
received. I'm using the following code:

 

static STAFString machine_from;

static STAFHandlePtr handle_sender;

...

machine_from = logRecord->get("machine")->asString();

handle_sender = logRecord->get("handle"); // This line gives me the error -

 

error: no match for âoperator=â in âhandle_sender = STAFObject::get(const 
STAFString&)(((const STAFString&)(& STAFString(((const char*)"handle"), 
4294967295u, kCurrent))))â

/usr/software/test/staf/current/include/STAFRefPtr.h:140: note: candidates are: 
STAFRefPtr<TheType>& STAFRefPtr<TheType>::operator=(const STAFRefPtr<TheType>&) 
[with TheType = STAFHandle]

/usr/software/test/staf/current/include/STAFRefPtr.h:90: note:                 
STAFRefPtr<TheType>& STAFRefPtr<TheType>::operator=(const TheType*) [with 
TheType = STAFHandle]

 

I also tried to obtain the handle name but similar error persists.

 

Thanks,

 

Hardik.

<<image001.gif>>

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to