yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10968
[Branch ~yade-pkg/yade/git-trunk] Rev 4025: In state pos_set and ori_set use passing by value.
------------------------------------------------------------
revno: 4025
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Thu 2014-06-12 18:54:31 +0200
message:
In state pos_set and ori_set use passing by value.
Such construction fails when vectorization is on.
modified:
core/State.hpp
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'core/State.hpp'
--- core/State.hpp 2014-05-15 14:47:33 +0000
+++ core/State.hpp 2014-06-12 16:54:31 +0000
@@ -46,9 +46,9 @@
// python access functions: pos and ori are references to inside Se3r and cannot be pointed to directly
Vector3r pos_get() const {return pos;}
- void pos_set(const Vector3r& p) {pos=p;}
+ void pos_set(const Vector3r p) {pos=p;}
Quaternionr ori_get() const {return ori; }
- void ori_set(const Quaternionr& o){ori=o;}
+ void ori_set(const Quaternionr o){ori=o;}
YADE_CLASS_BASE_DOC_ATTRS_INIT_CTOR_PY(State,Serializable,"State of a body (spatial configuration, internal variables).",
((Se3r,se3,Se3r(Vector3r::Zero(),Quaternionr::Identity()),,"Position and orientation as one object."))