diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-22 15:23:50 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-07-15 23:40:19 +0000 |
commit | e51fa143587d018b75db08e60cf27ff932b1cf8d (patch) | |
tree | efef96fb683eca20cd9eb65a8794264784efc950 /include/o3tl | |
parent | tdf#87437 exclude CR/cell break from redline deletions (diff) | |
download | core-e51fa143587d018b75db08e60cf27ff932b1cf8d.tar.gz core-e51fa143587d018b75db08e60cf27ff932b1cf8d.zip |
create a macro to tidy up the declaration sites of o3tl::typed_flags_set
Change-Id: Ifb8fd4fd5128188420f1dfda6b6f695160d5e77a
Reviewed-on: https://gerrit.libreoffice.org/15865
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'include/o3tl')
-rw-r--r-- | include/o3tl/typed_flags_set.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/o3tl/typed_flags_set.hxx b/include/o3tl/typed_flags_set.hxx index 76cefc50b32c..d997f6ac6afc 100644 --- a/include/o3tl/typed_flags_set.hxx +++ b/include/o3tl/typed_flags_set.hxx @@ -317,6 +317,15 @@ inline typename o3tl::typed_flags<E>::Self operator ^=( return lhs; } +/* + * Make the declaration sites a little less verbose + */ +#define DECLARE_TYPED_FLAGS(T,V) \ + namespace o3tl \ + { \ + template<> struct typed_flags<T> : is_typed_flags<T,V> {}; \ + } \ + #endif /* INCLUDED_O3TL_TYPED_FLAGS_SET_HXX */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |