mirror of
https://github.com/NixOS/nix
synced 2025-07-05 20:41:47 +02:00
Fix build issues with gcc
This commit is contained in:
parent
634cb2a5ae
commit
888f7afe9f
5 changed files with 6 additions and 6 deletions
|
@ -820,6 +820,7 @@ struct Implementations
|
|||
{
|
||||
if (!registered) registered = new std::vector<StoreFactory>();
|
||||
StoreFactory factory{
|
||||
.uriSchemes = T::uriSchemes(),
|
||||
.create =
|
||||
([](const std::string & scheme, const std::string & uri, const Store::Params & params)
|
||||
-> std::shared_ptr<Store>
|
||||
|
@ -827,8 +828,7 @@ struct Implementations
|
|||
.getConfig =
|
||||
([]()
|
||||
-> std::shared_ptr<StoreConfig>
|
||||
{ return std::make_shared<TConfig>(StringMap({})); }),
|
||||
.uriSchemes = T::uriSchemes()
|
||||
{ return std::make_shared<TConfig>(StringMap({})); })
|
||||
};
|
||||
registered->push_back(factory);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue