~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/util/functors.h

  • Committer: Lee Bieber
  • Date: 2010-10-22 16:47:38 UTC
  • mfrom: (1841.1.7 drizzle_pbms)
  • Revision ID: kalebral@gmail.com-20101022164738-vv8w22b8towpb307
Merge Barry - fix bug 657830: PBMS build failure in GCC 4.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
  }
35
35
};
36
36
 
 
37
class SafeDeletePtr
 
38
{
 
39
public:
 
40
  template<typename T>
 
41
  inline void operator()(const T *ptr) const
 
42
  {
 
43
    if (ptr)
 
44
                        delete ptr;
 
45
  }
 
46
};
 
47
 
37
48
} /* namespace drizzled */
38
49
 
39
50
#endif /* DRIZZLED_UTIL_FUNCTORS_H */