[Refactor]: Change configuration.cc to use boost::variant 10/75210/19
authorJames Harrison <00jamesh@gmail.com>
Tue, 14 Mar 2017 15:04:07 +0000 (15:04 +0000)
committerDave Rigby <daver@couchbase.com>
Thu, 6 Apr 2017 17:13:36 +0000 (17:13 +0000)
commitb7591f86de0e85994fa149cc7384d52a5fe7a4a1
tree0221b44efb168c6f564acbabbd33c9ac009a9609
parentaaa4d562a92cdccafa7e70c80f2f0c0446af7081
[Refactor]: Change configuration.cc to use boost::variant

Using variant simplifies some aspects of configuration.cc. It also paved
the way to templating a number of methods, reducing code repetition.

Change-Id: I625c84dd1daa905d38f6ab0e2d7ee31bf998657b
Reviewed-on: http://review.couchbase.org/75210
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
src/configuration.cc
src/configuration.h
tests/module_tests/configuration_test.cc
tools/genconfig.cc