From 0b8014d0d015c28062e904f65573cde51c6677c9 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 28 Jul 2015 19:41:50 +0100 Subject: Explicit conversion for boost-1.57 compat --- project2/common/options.h | 2 +- project2/files/presenterCache.cpp | 2 +- 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, dummy>::type = 0) { return new InstanceTarget( - [t](const VariableType & v) { *t = v; }, + [t](const VariableType & v) { *t = v.as(); }, [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(); boost::filesystem::create_directories(cache); cache /= FileName; return cache; -- cgit v1.2.3