File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 6262- Add error handling for insufficient correspondences in AdvancedMatching (PR #7234 )
6363- Exposed ` get_plotly_fig ` and modified ` draw_plotly ` to return the ` Figure ` it creates. (PR #7258 )
6464- Fix build with librealsense v2.44.0 and upcoming VS 2022 17.13 (PR #7074 )
65+ - Fix ` deprecated-declarations ` warnings when compiling code with C++20 standard (PR #7303 )
6566
6667## 0.13
6768
Original file line number Diff line number Diff line change @@ -62,8 +62,9 @@ class Tensor : public IsDevice {
6262
6363 // Check data types
6464 AssertTemplateDtype<T>();
65- if (!std::is_pod<T>()) {
66- utility::LogError (" Object must be a POD." );
65+ if (!(std::is_standard_layout<T>::value && std::is_trivial<T>::value)) {
66+ utility::LogError (
67+ " Object must be a StandardLayout and TrivialType type." );
6768 }
6869
6970 // Copy data to blob
@@ -1432,4 +1433,4 @@ inline void AssertNotSYCL(const Tensor& tensor) {
14321433}
14331434
14341435} // namespace core
1435- } // namespace open3d
1436+ } // namespace open3d
Original file line number Diff line number Diff line change @@ -53,7 +53,9 @@ namespace open3d {
5353namespace ml {
5454namespace contrib {
5555
56- static_assert (std::is_pod<PointXYZ>(), " PointXYZ class must be a POD type." );
56+ static_assert (std::is_standard_layout<PointXYZ>::value &&
57+ std::is_trivial<PointXYZ>::value,
58+ " PointXYZ class must be a StandardLayout and TrivialType type." );
5759
5860// Getters
5961// *******
Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ class TestObject {
4848 void *ptr_;
4949};
5050
51- static_assert (std::is_pod<TestObject>(), "TestObject must be a POD.");
51+ static_assert (std::is_standard_layout<TestObject>::value &&
52+ std::is_trivial<TestObject>::value,
53+ " TestObject must be a StandardLayout and TrivialType type." );
5254static const int64_t byte_size = sizeof (TestObject);
5355static const std::string class_name = " TestObject" ;
5456
You can’t perform that action at this time.
0 commit comments