diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-30 17:09:36 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-30 17:09:36 +0200 |
commit | 8138a68a75286eebc04557019ab0f5947d78eb99 (patch) | |
tree | 0d84e9a830b7c40e093c5904bc5d4b68503b8369 /odb/details/function-wrapper.hxx | |
parent | 2e80ed4e860fe45fa4558dc0322fa96b27743793 (diff) |
Try to work around xlC 11.1 warning/errors
Diffstat (limited to 'odb/details/function-wrapper.hxx')
-rw-r--r-- | odb/details/function-wrapper.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/odb/details/function-wrapper.hxx b/odb/details/function-wrapper.hxx index 5615fca..16dd0b7 100644 --- a/odb/details/function-wrapper.hxx +++ b/odb/details/function-wrapper.hxx @@ -65,7 +65,10 @@ namespace odb typedef void (function_wrapper<F>::*bool_convertible) (); void true_value () {} - operator bool_convertible () const; + operator bool_convertible () const + { + return function != 0 ? &function_wrapper<F>::true_value : 0; + } public: F* function; |