aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/types.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-06-15 13:50:33 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-06-15 13:50:33 +0200
commitfd64e4fb96f814440dc337ce664cdbd22e0eabb2 (patch)
tree3a52bc42728f242e59c34213e068d58b9a27bdb0 /src/libutil/types.hh
parent7a77762961aee116e7179ea57f07e143d74aba1f (diff)
Disambiguate BaseError(Args) constructor
This means that 'throw Error({ ... ErrorInfo ... })' now works.
Diffstat (limited to 'src/libutil/types.hh')
-rw-r--r--src/libutil/types.hh3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libutil/types.hh b/src/libutil/types.hh
index 89ae108f9..3af485fa0 100644
--- a/src/libutil/types.hh
+++ b/src/libutil/types.hh
@@ -1,6 +1,5 @@
#pragma once
-
#include "ref.hh"
#include <list>
@@ -25,7 +24,6 @@ typedef string Path;
typedef list<Path> Paths;
typedef set<Path> PathSet;
-
/* Helper class to run code at startup. */
template<typename T>
struct OnStartup
@@ -33,5 +31,4 @@ struct OnStartup
OnStartup(T && t) { t(); }
};
-
}