-
Notifications
You must be signed in to change notification settings - Fork 21
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
👩🌾 Fix Windows build #103
Conversation
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-fuel-tools3 #103 +/- ##
===================================================
+ Coverage 86.04% 86.08% +0.03%
===================================================
Files 18 19 +1
Lines 2215 2221 +6
===================================================
+ Hits 1906 1912 +6
Misses 309 309
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Didn't know about std::future
needing a type with a default ctor.
@@ -164,3 +164,10 @@ TEST(CollectionIdentifier, AsPrettyString) | |||
EXPECT_NE(str.find("raspberry"), std::string::npos); | |||
} | |||
} | |||
|
|||
////////////////////////////////////////////////// | |||
int main(int argc, char **argv) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, is it necessary to have the main here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, it was just one of the things I tried. It follows the same pattern as ModelIdentifier
and WorldIdentifier
The Windows build was broken on #98.
The problem was using a class that doesn't have a default constructor inside a future:
https://github.com/ignitionrobotics/ign-fuel-tools/blob/2eb0ee784c0c795289dd34e64ff2b814f9cc64c8/src/ign.cc#L611
I tried a few different things but ended up just giving the class a default constructor, which I don't think is unreasonable.