On 2014-12-28 14:41, Kyle Lutz wrote:
On Sun, Dec 28, 2014 at 1:54 AM, Gruenke,Matt
wrote: I'm a bit concerned about the use of type names ending in '_', such as float4_. Is this consistent with Boost conventions? I've only seen that used in other Boost libraries to denote class member variables.
I'm not sure if there are any Boost conventions for/against this (someone please speak up if there are). I chose the trailing underscore for these types as I needed a consistent spelling for representing the fundamental OpenCL types (e.g. "float" or "uint" or "int4") and I couldn't just use the names without the trailing underscore as they'd conflict with the C++ reserved keywords (e.g. "float", "int"). Using a leading underscore (e.g. "_float4") looked worse to me, so I used a trailing underscore. But I'd definitely be open to hearing other ideas.
There is precedent for the trailing underscore convention. See for example http://www.boost.org/doc/libs/1_57_0/libs/mpl/doc/refmanual/numeric.html. John Bytheway