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

Implement constructors for derived AABB class and fix gcc8 private delete member issue #2095

Merged
merged 2 commits into from
Jun 20, 2018

Conversation

oktomus
Copy link
Member

@oktomus oktomus commented Jun 19, 2018

dictoon
dictoon previously approved these changes Jun 19, 2018
// Value, vector and AABB types.
typedef T ValueType;
typedef Vector<T, N> VectorType;
typedef AABB<T, N> AABBType;

// Constructors.
#if !defined(_MSC_VER) || _MSC_VER >= 1800
AABB() = default; // leave all components uninitialized
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Align comments vertically (on a tab boundary).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@dictoon dictoon dismissed their stale review June 19, 2018 21:18

Problem not clear

Copy link
Member

@dictoon dictoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to understand what's going on.

GCC 8 forbids to inherit OIIO::TextureSystem if the delete method isn't
oerriden.
With GCC 8, the keyword using is not working as expected and we need to
implement all the constructors required in the derived class. Moreover,
the keyword using is not available by default with VS2012.
The constructor using the base class as a parameter is required to use
all static members using or returning base class objects.
@oktomus oktomus changed the title Allow easy conversion between axis-aligned bouding boxes Implement constructors for derived AABB class and fix gcc8 private delete member issue Jun 20, 2018
@dictoon dictoon merged commit ffd4efb into appleseedhq:master Jun 20, 2018
@oktomus oktomus deleted the fix-issue-2093 branch July 10, 2018 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants