Skip to content

Commit

Permalink
+ codify code
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneNyffenegger committed Mar 23, 2012
1 parent aad5f65 commit 21f6123
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions c++/helpers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
with [Chameleon.cpp](https://raw.github.com/ReneNyffenegger/development_misc/master/c++/misc/Chameleon.cpp) so that the values in the config
file can be assigned to `double` and to `std::string`

ConfigFile cf("configFile.txt");
ConfigFile cf("configFile.txt");

double d = cf.Value (...);
std::string s = cf.Value (...);
double d = cf.Value (...);
std::string s = cf.Value (...);

However, this approach caused more problems than it solved. Therefore, I decided to forego `Chameleon`. The class can now only be used to return `std::strings`.

Expand Down

0 comments on commit 21f6123

Please sign in to comment.