Compile error while building split_byref_op
Created by: abhinavarora
<scratch space>:135:1: note: expanded from here
boost_static_assert_typedef_1697
^
In file included from /Users/aroraabhinav/Documents/workspace/paddlepaddle/Paddle/paddle/fluid/operators/split_byref_op.cc:15:
/Users/aroraabhinav/Documents/workspace/paddlepaddle/Paddle/paddle/fluid/operators/split_byref_op.h:36:14: error: moving a temporary object prevents copy
elision [-Werror,-Wpessimizing-move]
*out = std::move(in->Slice(row_offset, row_offset + out->dims()[0]));
^
/Users/aroraabhinav/Documents/workspace/paddlepaddle/Paddle/paddle/fluid/operators/split_byref_op.h:36:14: note: remove std::move call here
*out = std::move(in->Slice(row_offset, row_offset + out->dims()[0]));
^~~~~~~~~~ ~