~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/util/functors.h

  • Committer: lbieber at stabletransit
  • Date: 2010-10-19 14:03:27 UTC
  • mfrom: (1861.1.2 build)
  • Revision ID: lbieber@drizzle-build-n02.wc1.dfw1.stabletransit.com-20101019140327-2jvt5j2wi4pzhm1z
Merge Brian - Small collection of cleanups/refactor'ing around locks
Merge Monty - fix a few things in the tarball

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
 
 
48
37
} /* namespace drizzled */
49
38
 
50
39
#endif /* DRIZZLED_UTIL_FUNCTORS_H */