Bug fix: return the boost::program_options::option_description by value
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Tue, 13 Sep 2011 04:07:55 +0000 (01:07 -0300)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Tue, 13 Sep 2011 04:07:55 +0000 (01:07 -0300)
commit16b1c7cd765dcbaf527d0acdefe92a00074037b4
treeeac43666cae644e4b39d759e1e587a4b6d55f338
parent326685d82804c36900ed5c33774c855a37a185c6
Bug fix: return the boost::program_options::option_description by value
- If this object is returned by reference or smart pointer, the
  boost::program_options::options_description::add() method will delete it
  causing double free on that object. So we prevent any problem by not exposing
  the underlying object
src/config/option/configurationoption.cpp
src/config/option/configurationoption.h