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

mup::Variable doesn't have a default constuctor #39

Closed
GoogleCodeExporter opened this issue Mar 22, 2015 · 2 comments
Closed

mup::Variable doesn't have a default constuctor #39

GoogleCodeExporter opened this issue Mar 22, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

This code doesn't compile: mup::Variable variable;


What is the expected output?

I'd expect the following code to work, which collects all objects related to 
parsing a specific expression together:
std::tuple<
    std::string,
    mup::ParserX,
    mup::Value,
    mup::Variable
> objects;

I don't see how I can initialize Variable in objects with a pointer to Value in 
objects without invoking a default constructor for Variable at some point.


What version of the product are you using?

3.0.1



Original issue reported on code.google.com by ilja.j.h...@nasa.gov on 16 Jul 2014 at 8:33

@GoogleCodeExporter
Copy link
Author

I wanted to avoid having to deal uninitialized variables. In my mind an unbound 
variable just didn't make sense. Did you add a default constructor and it did 
solve your problem? If so i guess i can add it to the code. 

Original comment by ib...@gmx.info on 26 Jul 2014 at 1:57

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

I solved the problem another way, but that led to other features (issue 40). 
I'm starting to think that it might be good to merge (at least from user point 
of view) the functionality of variable and value because they always seem to go 
together anyway.

Original comment by ilja.j.h...@nasa.gov on 26 Jul 2014 at 4:57

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

2 participants