|
Boost : |
Subject: Re: [boost] [compute] review
From: Gruenke,Matt (mgruenke_at_[hidden])
Date: 2014-12-28 19:19:57
-----Original Message-----
From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of Andrey Semashev
Sent: Sunday, December 28, 2014 18:44
To: boost_at_[hidden]
Subject: Re: [boost] [compute] review
> On Mon, Dec 29, 2014 at 1:31 AM, John Bytheway <jbytheway+boost_at_[hidden]> wrote:
> The trailing underscore syntax is typically used when a library construct has
> semantics very similar to a language component which uses a keyword.
> I.e. mpl::if_ is similar to the language if, and mpl::int_ to the language int,
> except that mpl tools operate at compile time. In this case, I think, the
> semantics is sufficiently different (vector types instead of scalar), which
> should warrant for a distinct and descriptive names.
I appreciate what I assume Kyle was trying to do. These correspond 1:1 to the types used in OpenCL kernels, so I think he wanted the Boost.Compute typedefs to be as similar as possible.
I think this approach is justified, as their meaning will be obvious to anyone familiar with OpenCL. I only meant to raise the question of how they were mangled.
Matt
________________________________
This e-mail contains privileged and confidential information intended for the use of the addressees named above. If you are not the intended recipient of this e-mail, you are hereby notified that you must not disseminate, copy or take any action in respect of any information contained in it. If you have received this e-mail in error, please notify the sender immediately by e-mail and immediately destroy this e-mail and its attachments.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk