Commit 6543ae4c authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

Some minor changes to fancy array handles.

This are just some minor things I ran into while documenting these classes.
One change is just an error in a comment. The other change allows you
to specify the type in make_ArrayHandleCast as a template argument instead
of creating an instance.
parent 0bcd172d
......@@ -77,7 +77,7 @@ public:
template <typename T, typename HandleType>
ArrayHandleCast<T, HandleType> make_ArrayHandleCast(const HandleType &handle,
const T&)
const T& = T())
return ArrayHandleCast<T, HandleType>(handle);
......@@ -70,7 +70,7 @@ public:
: Superclass(detail::ConstantFunctor<T>(value), numberOfValues) { }
/// make_ArrayHandleImplicit is convenience function to generate an
/// make_ArrayHandleConstant is convenience function to generate an
/// ArrayHandleImplicit. It takes a functor and the virtual length of the
/// array.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment