From 4a557a8b6631f132e851b1bb362cde4270ca6057 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 10 Feb 2013 21:32:30 +0000 Subject: Derive exceptions from boost::exception and use boost::throw_exception to enable thread-safe exception handling by callers. --- src/dcp_time.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dcp_time.cc') 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 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 (b[0]); -- cgit v1.2.3