/[usata]/usata2/src/util.hpp
ViewVC logotype

Diff of /usata2/src/util.hpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by skunix, Sun Jan 9 09:28:54 2005 UTC revision 1.7 by skunix, Sun Jan 9 09:34:42 2005 UTC
# Line 26  namespace usata Line 26  namespace usata
26                    
27          void strip_comments(std::string&s);          void strip_comments(std::string&s);
28    
         template<typename T>  
         struct shared_ptr_find_ptr : public std::unary_function<boost::shared_ptr<T>,bool>  
         {  
                 typedef boost::shared_ptr<T> T_sp;  
                 T* looking_for;  
                 shared_ptr_find_ptr(T*t):looking_for(t){}  
                 bool operator()(const T_sp& sp)  
                 {  
                         return (sp.get==looking_for);  
                 }  
         };  
   
29          struct at_scope_exit          struct at_scope_exit
30          {          {
31                  typedef boost::function<void ()> func;                  typedef boost::function<void ()> func;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26