mirror of
https://github.com/NixOS/nix.git
synced 2025-11-27 20:51:00 +01:00
Correctly call all the parent contructors of the stores
Using virtual inheritance means that only the default constructors of the parent classes will be called, which isn't what we want
This commit is contained in:
parent
d184ad1d27
commit
5895184df4
12 changed files with 47 additions and 20 deletions
|
|
@ -2,17 +2,22 @@
|
|||
|
||||
namespace nix {
|
||||
|
||||
struct DummyStoreConfig : StoreConfig {};
|
||||
struct DummyStoreConfig : StoreConfig {
|
||||
using StoreConfig::StoreConfig;
|
||||
};
|
||||
|
||||
struct DummyStore : public Store
|
||||
struct DummyStore : public Store, public virtual DummyStoreConfig
|
||||
{
|
||||
DummyStore(const std::string uri, const Params & params)
|
||||
: DummyStore(params)
|
||||
{ }
|
||||
|
||||
DummyStore(const Params & params)
|
||||
: Store(params)
|
||||
{ }
|
||||
: StoreConfig(params)
|
||||
, DummyStoreConfig(params)
|
||||
, Store(params)
|
||||
{
|
||||
}
|
||||
|
||||
string getUri() override
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue