about summary refs log tree commit diff
path: root/src/libstore/store-api.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-11T14·32+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-11T14·32+0100
commitfd205fb6f8edc73a0d867a6dfc5a34737bae6bb9 (patch)
treefa51b5b2a3e7e676a4bb468104e0c60bcdbc73e8 /src/libstore/store-api.cc
parentad0dc41899cafb8ee8afc73856d3a86ec3fa0240 (diff)
ref<T>: Add cast operator
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r--src/libstore/store-api.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index e205fd0e8fe1..039d07e29b3e 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -322,8 +322,8 @@ ref<Store> openStore(bool reserveSpace)
     }
 
     return mode == mDaemon
-        ? make_ref<Store, RemoteStore>()
-        : make_ref<Store, LocalStore>(reserveSpace);
+        ? (ref<Store>) make_ref<RemoteStore>()
+        : (ref<Store>) make_ref<LocalStore>(reserveSpace);
 }