Commit ace6d101 authored by Dominik Charousset's avatar Dominik Charousset

Remove literals for caf::duration

CAF's own duration type is going to get deprecated soon. No need to add
new functionality.
parent e2d90953
...@@ -172,29 +172,6 @@ operator+=(std::chrono::time_point<Clock, Duration>& lhs, const duration& rhs) { ...@@ -172,29 +172,6 @@ operator+=(std::chrono::time_point<Clock, Duration>& lhs, const duration& rhs) {
return lhs; return lhs;
} }
namespace literals {
constexpr duration operator"" _min(unsigned long long x) {
return {time_unit::minutes, static_cast<uint32_t>(x)};
}
constexpr duration operator"" _s(unsigned long long x) {
return {time_unit::seconds, static_cast<uint32_t>(x)};
}
constexpr duration operator"" _ms(unsigned long long x) {
return {time_unit::milliseconds, static_cast<uint32_t>(x)};
}
constexpr duration operator"" _us(unsigned long long x) {
return {time_unit::microseconds, static_cast<uint32_t>(x)};
}
constexpr duration operator"" _ns(unsigned long long x) {
return {time_unit::nanoseconds, static_cast<uint32_t>(x)};
}
} // namespace literals
} // namespace caf } // namespace caf
#endif // CAF_DURATION_HPP #endif // CAF_DURATION_HPP
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment