diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2016-08-01 11:58:34 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-08-01 11:58:34 -0700 |
commit | 7b32c0d9e6f0cc8b689b0f7c70e93f7f67af2d12 (patch) | |
tree | 0bd0b51447a024119031ea8e821fa636f5f3f485 /gnuradio-runtime/lib/prefs.cc | |
parent | 611493e12af8edaf50645e19aa94372ec1c3e387 (diff) |
runtime: fixes prefs system to work with older boost 1.48 and gcc 4.6.3
Diffstat (limited to 'gnuradio-runtime/lib/prefs.cc')
-rw-r--r-- | gnuradio-runtime/lib/prefs.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnuradio-runtime/lib/prefs.cc b/gnuradio-runtime/lib/prefs.cc index 341028eba8..18acae0124 100644 --- a/gnuradio-runtime/lib/prefs.cc +++ b/gnuradio-runtime/lib/prefs.cc @@ -30,6 +30,7 @@ #include <algorithm> #include <fstream> +#include <iostream> #include <boost/filesystem/operations.hpp> #include <boost/filesystem/path.hpp> @@ -113,7 +114,7 @@ namespace gr { std::string value = o.value[0]; d_config_map[section][key] = value; } - } catch(const boost::program_options::invalid_config_file_syntax & e) { + } catch(std::exception e) { std::cerr << "WARNING: Config file '" << fname << "' failed to parse:" << std::endl; std::cerr << e.what() << std::endl; std::cerr << "Skipping it" << std::endl; |