diff options
Diffstat (limited to 'include/tools/degree.hxx')
-rw-r--r-- | include/tools/degree.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/tools/degree.hxx b/include/tools/degree.hxx index 7151abccb228..d7ff625b0de2 100644 --- a/include/tools/degree.hxx +++ b/include/tools/degree.hxx @@ -12,7 +12,9 @@ #include <o3tl/strong_int.hxx> /** tenths of a Degree, normally rotation */ - typedef o3tl::strong_int<sal_Int16, struct Degree10Tag> Degree10; +/** custom literal */ +constexpr Degree10 operator""_deg10(unsigned long long n) { return Degree10{ n }; } + /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |