[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 03/05: runtime: fixes prefs system to work
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 03/05: runtime: fixes prefs system to work with older boost 1.48 and gcc 4.6.3 |
Date: |
Mon, 1 Aug 2016 21:58:54 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 7b32c0d9e6f0cc8b689b0f7c70e93f7f67af2d12
Author: Johnathan Corgan <address@hidden>
Date: Mon Aug 1 11:58:34 2016 -0700
runtime: fixes prefs system to work with older boost 1.48 and gcc 4.6.3
---
gnuradio-runtime/lib/prefs.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnuradio-runtime/lib/prefs.cc b/gnuradio-runtime/lib/prefs.cc
index 341028e..18acae0 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;