diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-22 11:56:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-22 11:56:32 +0200 |
commit | 374052af4ad4d1d97d6d86e6db273e7413f2a9b3 (patch) | |
tree | 72da6547317a35db1cc41bbadc7d9ebda5b1bcf5 /odb/details/posix/tls.hxx | |
parent | 43e592013b1dc786cd224ce827cad24f1805ca49 (diff) |
Allow implicit conversion of TLS pointers
Diffstat (limited to 'odb/details/posix/tls.hxx')
-rw-r--r-- | odb/details/posix/tls.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/odb/details/posix/tls.hxx b/odb/details/posix/tls.hxx index 0db3d35..26d9438 100644 --- a/odb/details/posix/tls.hxx +++ b/odb/details/posix/tls.hxx @@ -90,10 +90,11 @@ namespace odb return t.get (); } - template <typename T> + template <typename T, typename T1> inline void - tls_set (tls<T*>& t, T* p) + tls_set (tls<T*>& t, T1* p1) { + T* p (p1); t.set (p); } } |