-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2a2276
commit d693ef9
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d693ef9
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.
Hello Andreas, this will break compiles on ubuntu 16.04 with the default compiler. Is MIRTK switching to C++14?
d693ef9
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.
Hm, I probably should have tested. I only checked which GCC version comes with Ubuntu 16.04 (GCC 5) and whether it would support C++14 standard features. According to https://gcc.gnu.org/projects/cxx-status.html#cxx14, the default GCC compiler on Ubuntu 16.04 should have full support of C++14.
Is that not the case?
d693ef9
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.
To answer the question, yes, I wanted to switch to C++14. Is there a good reason to stick to C++11 still?
d693ef9
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.
See also: #707
d693ef9
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.
Sorry, my fault, I should have checked more carefully.
MIRTK builds, but SphericalMesh fails when it tries to include MIRTK:
Perhaps SphericalMesh needs a patch to enable c++14, I'll have a look.
d693ef9
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.
Regarding reasons to stay on c++11, FSL 6.0.2 is still built with gcc 4.8 (I know, sad trombone), so if you switch MIRTK to gcc5 minimum, you will no longer be able to build programs which link to both FSL and MIRTK.
Perhaps this is not very common.
d693ef9
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.
That's a fair point. Though I would rather expect folks to use FSL (and MIRTK) to construct executable-based pipelines, so the code wouldn't have to be linked together. As it's only for
std::make_unique
for now, probably best to just fall back to C++11 compatibility.