summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--project2/common/options.h2
-rw-r--r--project2/files/presenterCache.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/project2/common/options.h b/project2/common/options.h
index 3a7a28b..0d90826 100644
--- a/project2/common/options.h
+++ b/project2/common/options.h
@@ -73,7 +73,7 @@ class Options {
TargetPtr value(T * t, const D & d = D(),
typename boost::disable_if<std::is_convertible<VariableType, T>, dummy>::type = 0) {
return new InstanceTarget(
- [t](const VariableType & v) { *t = v; },
+ [t](const VariableType & v) { *t = v.as<std::string>(); },
[t, d]() { *t = d; });
}
diff --git a/project2/files/presenterCache.cpp b/project2/files/presenterCache.cpp
index 897c85b..3fbe1f6 100644
--- a/project2/files/presenterCache.cpp
+++ b/project2/files/presenterCache.cpp
@@ -202,7 +202,7 @@ class FilePresenterCache : public PresenterCache {
{
boost::filesystem::path cache;
cache = Store;
- cache /= idProvider->value(ec);
+ cache /= idProvider->value(ec).as<std::string>();
boost::filesystem::create_directories(cache);
cache /= FileName;
return cache;