Skip to content

Conversation

@xorza
Copy link

@xorza xorza commented Sep 14, 2019

Xcode 10.3 fails to build due to exception being catched by value:


/Applications/Xcode.app/Contents/Developer/usr/bin/make dirs libnima.a headers
clang++ -Wall -Werror -g -std=c++11 -I./ -INima-Math-Cpp/Build/include   -c Source/Actor.cpp -o Build/obj/Source/Actor.o
Source/Actor.cpp:280:9: error: local variable 'ex' will be copied despite being
      thrown by name [-Werror,-Wreturn-std-move]
                throw ex;
                      ^~
Source/Actor.cpp:280:9: note: call 'std::move' explicitly to avoid copying
                throw ex;
                      ^~
                      std::move(ex)
1 error generated.

Xcode 10.3 fails to build due to exception being catched by value:

/Applications/Xcode.app/Contents/Developer/usr/bin/make dirs libnima.a headers
clang++ -Wall -Werror -g -std=c++11 -I./ -INima-Math-Cpp/Build/include   -c Source/Actor.cpp -o Build/obj/Source/Actor.o
Source/Actor.cpp:280:9: error: local variable 'ex' will be copied despite being
      thrown by name [-Werror,-Wreturn-std-move]
                throw ex;
                      ^~
Source/Actor.cpp:280:9: note: call 'std::move' explicitly to avoid copying
                throw ex;
                      ^~
                      std::move(ex)
1 error generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant