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:
@@ -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());
|
||||
|
Reference in New Issue
Block a user