Boost logo

Boost :

Subject: Re: [boost] [compute] Review comments
From: Robert Ramey (ramey_at_[hidden])
Date: 2014-12-29 10:23:24


Asbjørn wrote
> Comments in no particular order:
>
> 1) As a library user and one who's not a C++ guru by any means, the error
> messages thrown up when passing incorrect parameters can be quite
> confusing.
>
> For example, first time I tried to use Boost.Compute I managed to not pass
> the
> ouput iterator parameter to transform(), so that the lambda expression
> ended up
> in that position instead. This resulted in several very confusing errors
> inside
> result_of.hpp, with no errors anywhere near my or Boost.Compute source
> code.
>
> It would be nice if the compilation could fail in more informative
> manners.

This is an annoying, and recurring problem in much of boost library
documentation.
The solution is well known for many years. Here is more information:

http://rrsd.com/blincubator.com/advice_concepts/

Robert Ramey

--
View this message in context: http://boost.2283326.n4.nabble.com/compute-Review-comments-tp4670330p4670364.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk