util/TimeParser: add "pure" attribute

This commit is contained in:
Max Kellermann 2017-01-08 10:41:07 +01:00
parent 42acf78b09
commit 44493ca0c4
1 changed files with 3 additions and 0 deletions

View File

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