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

STL containers with non-assignable types break the build #422

Open
dbankieris opened this issue May 15, 2017 · 0 comments
Open

STL containers with non-assignable types break the build #422

dbankieris opened this issue May 15, 2017 · 0 comments
Assignees

Comments

@dbankieris
Copy link
Contributor

dbankieris commented May 15, 2017

ICG should not create checkpoint restore code for any STL container whose type hides operator=. Note that a container of pointers to such a type is ok, but not a container of actual instances of such a type.

class Foo {
    private:
    void operator=(const Foo&);
};
#include "sim_objects/default_trick_sys.sm"

##include <vector>
##include "Foo.hh"

class Sandbox : public Trick::SimObject {

    const std::vector<Foo> foos;

};

SIM_422.zip

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

3 participants