From 3876c0907237e5fa89c5850ed1ee688a3bcb62b3 Mon Sep 17 00:00:00 2001 From: Jarryd Beck Date: Tue, 19 Feb 2019 18:07:25 +1100 Subject: [PATCH] Use reference instead of value --- include/cxxopts.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 45fea09..94b81ef 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -1089,7 +1089,8 @@ namespace cxxopts return m_key; } - const std::string + const + std::string& value() const { return m_value; -- libgit2 0.21.4