~clint-fewbar/drizzle/regex-policy-cache-limiter

« back to all changes in this revision

Viewing changes to drizzled/util/test.h

  • Committer: Clint Byrum
  • Date: 2012-03-15 18:05:43 UTC
  • mfrom: (2224.1.302 workspace)
  • Revision ID: clint@ubuntu.com-20120315180543-9jxxm4q10k3np2ws
merging with latest trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_UTIL_TEST_H
22
 
#define DRIZZLED_UTIL_TEST_H
 
21
#pragma once
23
22
 
24
23
namespace drizzled {
25
24
 
26
25
template <class T>
27
26
bool test(const T a)
28
27
{
29
 
  return a;
 
28
  return bool(a);
30
29
}
31
30
 
32
31
template <class T, class U>
37
36
 
38
37
} /* namespace drizzled */
39
38
 
40
 
#endif /* DRIZZLED_UTIL_TEST_H */