rigidBodyDynamics/bodies: Complete set of clone functions to support copy construction and assignment

This commit is contained in:
Henry Weller
2016-04-07 23:04:17 +01:00
parent 6d7eb1ac4d
commit b701ec9f3d
7 changed files with 35 additions and 1 deletions

View File

@ -81,7 +81,8 @@ int main(int argc, char *argv[])
*/
// Create the pendulum model from dictionary
rigidBodyModel pendulum(dictionary(IFstream("pendulum")()));
rigidBodyModel pendulum1(dictionary(IFstream("pendulum")()));
rigidBodyModel pendulum = pendulum1;
pendulum.write(Info);