~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/util/functors.h

  • Committer: Lee Bieber
  • Date: 2010-01-30 23:42:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1282.
  • Revision ID: lbieber@lee-biebers-macbook-pro.local-20100130234202-sxmqfteqwiq15ptg
add target to japanese tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_UTIL_FUNCTORS_H
22
22
#define DRIZZLED_UTIL_FUNCTORS_H
23
23
 
24
 
namespace drizzled
25
 
{
26
 
 
27
24
class DeletePtr
28
25
{
29
26
public:
34
31
  }
35
32
};
36
33
 
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
 
} /* namespace drizzled */
49
 
 
50
34
#endif /* DRIZZLED_UTIL_FUNCTORS_H */