Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error while building split_byref_op #10040

Closed
abhinavarora opened this issue Apr 19, 2018 · 1 comment
Closed

Compile error while building split_byref_op #10040

abhinavarora opened this issue Apr 19, 2018 · 1 comment
Assignees

Comments

@abhinavarora
Copy link
Contributor

abhinavarora commented Apr 19, 2018

<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]));
             ^~~~~~~~~~                                                  ~
@typhoonzero
Copy link
Contributor

Are you compiling on MacOS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants