mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-04 08:51:10 +00:00
[C++] remove "= default" from constructor to support old compilers
This commit is contained in:
@@ -3,12 +3,11 @@
|
|||||||
|
|
||||||
namespace Native {
|
namespace Native {
|
||||||
struct Vector3D {
|
struct Vector3D {
|
||||||
public:
|
|
||||||
double x;
|
double x;
|
||||||
double y;
|
double y;
|
||||||
double z;
|
double z;
|
||||||
|
|
||||||
Vector3D() = default;
|
Vector3D() { x = 0; y = 0; z = 0; };
|
||||||
Vector3D(double x, double y, double z) { this->x = x; this->y = y; this->z = z; }
|
Vector3D(double x, double y, double z) { this->x = x; this->y = y; this->z = z; }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user