Commit 3876c0907237e5fa89c5850ed1ee688a3bcb62b3

Authored by Jarryd Beck
1 parent 9990f738

Use reference instead of value

Fixes #166.
Showing 1 changed file with 2 additions and 1 deletions
include/cxxopts.hpp
... ... @@ -1089,7 +1089,8 @@ namespace cxxopts
1089 1089 return m_key;
1090 1090 }
1091 1091  
1092   - const std::string
  1092 + const
  1093 + std::string&
1093 1094 value() const
1094 1095 {
1095 1096 return m_value;
... ...