# Build on linux,clang not support std::move

**URL:** <https://forums.unrealengine.com/t/build-on-linux-clang-not-support-std-move/412127>\
**Category:** Platform & Builds\
**Tags:** clang, Linux, unreal-engine, question\
**Created:** [December 13, 2017, 2:54am UTC](https://forums.unrealengine.com/t/build-on-linux-clang-not-support-std-move/412127 "2017-12-13T02:54:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![qqwx1986](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@qqwx1986](https://forums.unrealengine.com/u/qqwx1986)\
**Post date:** [December 13, 2017, 2:54am UTC](https://forums.unrealengine.com/t/build-on-linux-clang-not-support-std-move/412127/1 "2017-12-13T02:54:56Z")

</div>

i have used std::move in my project  
but there clang++3.8 complier  
error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]

how resolved this problem but not remove std::move

i found there use std::move in engine souce,why i can’t use in my project

---

<div class="post-metadata">

**Author:** ![0x414e54](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0x414e54](https://forums.unrealengine.com/u/0x414e54)\
**Post date:** [December 13, 2017, 11:04am UTC](https://forums.unrealengine.com/t/build-on-linux-clang-not-support-std-move/412127/2 "2017-12-13T11:04:04Z")

</div>

Hi,

Is it possible at all to post/attach a snippet of the code you are trying to compile? Or at-least an easily reproducible case?

Without any reference, my initial response would be that you do not need to use std::move as the temporary object would be assigned by the move assignment operator.

---

<div class="post-metadata">

**Author:** ![qqwx1986](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@qqwx1986](https://forums.unrealengine.com/u/qqwx1986)\
**Post date:** [December 16, 2017, 1:33am UTC](https://forums.unrealengine.com/t/build-on-linux-clang-not-support-std-move/412127/3 "2017-12-16T01:33:39Z")

</div>

i resolved this problem by modify buildtool source finally
