1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 22:01:15 +02:00

Disambiguate BaseError(Args) constructor

This means that 'throw Error({ ... ErrorInfo ... })' now works.
This commit is contained in:
Eelco Dolstra 2020-06-15 13:50:33 +02:00
parent 7a77762961
commit fd64e4fb96
2 changed files with 4 additions and 8 deletions

View file

@ -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(); }
};
}