Dev/kwiver integration

The only constructor for this exception is
    bad_configuration_cast(char const* reason) SPROKIT_NOTHROW;

It is possible that this is not the best exception to throw here. An
alternative is to use the "bad_configuration_cast_exception", but there is
no "key" available at this point.



On Fri, Aug 22, 2014 at 2:25 PM, Ben Boeckel <notifications@github.com>
wrote:

> In src/sprokit/pipeline/config.h:
>
> > @@ -430,10 +469,14 @@ config_cast_default(config::value_t const& value)
> >    }
> >    catch (boost::bad_lexical_cast const& e)
> >    {
> > -    throw bad_configuration_cast(e.what());
> > +    std::stringstream ss;
> > +    ss << e.what() << " - converting \"" << value << "\" to type \""
> > +       << type_name<T>() << "\"";
> > +    throw bad_configuration_cast( ss.str().c_str() );
>
> No need for the c_str call here (or there shouldn't be at least).
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Kitware/sprokit/pull/2/files#r16613117>.
>



-- 
*Linus Sherrill - *R&D Engineer
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065-8662
E: linus.sherrill@kitware.com
P: 518.881.4400