We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e74964 commit dab0618Copy full SHA for dab0618
1 file changed
include/fastcdr/xcdr/optional.hpp
@@ -91,7 +91,12 @@ class optional
91
}
92
93
//! Destructor
94
- ~optional() = default;
+ ~optional()
95
+#if defined(__GNUC__) && __GNUC__ == 12
96
+ __attribute__(
97
+ (noinline))
98
+#endif // if defined(__GNUC__) && __GNUC__ == 12
99
+ = default;
100
101
/*!
102
* @brief Constructs the contained value in-place
@@ -224,6 +229,10 @@ class optional
224
229
//! Assigns content from an optional.
225
230
optional& operator =(
226
231
optional&& opt)
232
233
234
235
227
236
{
228
237
reset();
238
storage_.engaged_ = opt.storage_.engaged_;
0 commit comments