
On Saturday, January 12, 2013 11:45:01 Kyle Lutz wrote:
I'd like to propose a new function for the Boost Array library named make_array(). The function constructs a fixed size array given N arguments and is similar to the make_pair() and make_tuple() functions.
Interface:
The make_array() function provides the following interface:
template<class T> boost::array<T, N> make_array(...)
where the '...' indicates N arguments.
If no type T is passed explicitly it is deduced from the type of the first argument. The function requires that all of the arguments must be convertible (via static_cast<>) to type T. <snip>
The code is available on github at https://github.com/kylelutz/make_array
Any feedback is greatly appreciated.
The C++11 code looks too complicated. Wouldn't https://gist.github.com/4522812 be enough?
Thanks, Kyle
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost