summaryrefslogtreecommitdiff
path: root/project2/json
diff options
context:
space:
mode:
Diffstat (limited to 'project2/json')
-rw-r--r--project2/json/couchSession.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/project2/json/couchSession.cpp b/project2/json/couchSession.cpp
index 7045113..2fe2ae6 100644
--- a/project2/json/couchSession.cpp
+++ b/project2/json/couchSession.cpp
@@ -111,7 +111,9 @@ class CustomCouchSessionLoader : public SessionContainerLoader::For<CouchSession
opts("Session CouchDB options")
{
opts
- ("session.couchdb.baseUrl", Options::value(&CouchSessionContainer::baseUrls),
+ ("session.couchdb.baseUrl", Options::functions(
+ [](const VariableType & v) { CouchSessionContainer::baseUrls.push_back(v); },
+ boost::bind(&std::vector<std::string>::clear, &CouchSessionContainer::baseUrls)),
"Base URL to store sessions in")
;
}