[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

trouble with bind





I seem to have come across a feature/bug in bind, perhaps due to misuse
on my part.


Here is my scenario:

   DropTail::DropTail() {
	...
	bind("drop-front_", &drop_front_);
	...
   }
   
   
   NewClass::NewClass() {
   
   	DropTail *Q = new DropTail;
   	
   } new_class ;
   
   
 When the constructor for "new_class" is executed, I get the
 runt-time warning  
 
      warning: no class variable NewClass::drop-front_
 
 Why does this warning appear?
 The warning is issued when executing the "bind" when the constructor
 for object Q (class DropTail) is executed.
 If the constructor is for DropTail class, why does the Warning refer to
 class NewClass ?
 NewClass does not declare or use drop-front_ anywhere.
 
 Any clarification would be appreciated.
 
 Regards.
 
 - nitin