Commit 44493ca0 authored by Max Kellermann's avatar Max Kellermann

util/TimeParser: add "pure" attribute

parent 42acf78b
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
#ifndef TIME_PARSER_HXX #ifndef TIME_PARSER_HXX
#define TIME_PARSER_HXX #define TIME_PARSER_HXX
#include "Compiler.h"
#include <chrono> #include <chrono>
/** /**
...@@ -37,6 +39,7 @@ ...@@ -37,6 +39,7 @@
* *
* Throws std::runtime_error on error. * Throws std::runtime_error on error.
*/ */
gcc_pure
std::chrono::system_clock::time_point std::chrono::system_clock::time_point
ParseTimePoint(const char *s, const char *format); ParseTimePoint(const char *s, const char *format);
......
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