Build fix for GCC >4.9

Default arguments on redeclaration of member function of class templates
are rejected in GCC 4.9+

The default argument must appear when the member function is first
declared.

https://gcc.gnu.org/gcc-4.9/porting_to.html
This commit is contained in:
Nico Galoppo
2016-05-20 13:15:19 -07:00
parent 17aef4b4cf
commit b760bd0c92

View File

@@ -28,7 +28,7 @@ namespace random
{
template<typename T>
array rand(tuple const & shape, driver::Context const & context = driver::backend::contexts::get_default())
array rand(tuple const & shape, driver::Context const & context)
{
std::random_device rd;
std::mt19937 mt(rd());