diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-10 21:32:30 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-10 21:32:30 +0000 |
| commit | 4a557a8b6631f132e851b1bb362cde4270ca6057 (patch) | |
| tree | 90fb18368ab64a3739d1b1e849838f57045b9fbe /src/dcp_time.cc | |
| parent | 53fb1df6ca3848f9835b745b8ce13b0ad2196137 (diff) | |
Derive exceptions from boost::exception and use boost::throw_exception to enable thread-safe exception handling by callers.
Diffstat (limited to 'src/dcp_time.cc')
| -rw-r--r-- | src/dcp_time.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dcp_time.cc b/src/dcp_time.cc index 15ad05d4..bdf55f93 100644 --- a/src/dcp_time.cc +++ b/src/dcp_time.cc @@ -59,7 +59,7 @@ Time::Time (string time) vector<string> b; split (b, time, is_any_of (":")); if (b.size() != 4) { - throw DCPReadError ("unrecognised time specification"); + boost::throw_exception (DCPReadError ("unrecognised time specification")); } h = lexical_cast<int> (b[0]); |
