Skip to content

Commit 9b6ce5e

Browse files
committed
bugfix space after operator""
1 parent e23dd1f commit 9b6ce5e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

klib/units.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ namespace klib::time {
162162
* @brief Operators for all the time units
163163
*
164164
*/
165-
constexpr ns operator"" _ns(const unsigned long long int value) {
165+
constexpr ns operator""_ns(const unsigned long long int value) {
166166
// get rid of the unsigned long long int straight away
167167
return ns(static_cast<uint32_t>(value));
168168
}
@@ -179,7 +179,7 @@ namespace klib::time {
179179
return (value / conversion_factor<ns, s>());
180180
}
181181

182-
constexpr us operator"" _us(const unsigned long long int value) {
182+
constexpr us operator""_us(const unsigned long long int value) {
183183
// get rid of the unsigned long long int straight away
184184
return us(static_cast<uint32_t>(value));
185185
}
@@ -196,7 +196,7 @@ namespace klib::time {
196196
return (value / conversion_factor<us, s>());
197197
}
198198

199-
constexpr ms operator"" _ms(const unsigned long long int value) {
199+
constexpr ms operator""_ms(const unsigned long long int value) {
200200
// get rid of the unsigned long long int straight away
201201
return ms(static_cast<uint32_t>(value));
202202
}
@@ -213,7 +213,7 @@ namespace klib::time {
213213
return (value / conversion_factor<ms, s>());
214214
}
215215

216-
constexpr s operator"" _s(const unsigned long long int value) {
216+
constexpr s operator""_s(const unsigned long long int value) {
217217
// get rid of the unsigned long long int straight away
218218
return s(static_cast<uint32_t>(value));
219219
}

0 commit comments

Comments
 (0)