Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion include/fastcdr/xcdr/optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ class optional
}

//! Destructor
~optional() = default;
~optional()
#if defined(__GNUC__) && __GNUC__ == 12
__attribute__(
(noinline))
#endif // if defined(__GNUC__) && __GNUC__ == 12
= default;

/*!
* @brief Constructs the contained value in-place
Expand Down Expand Up @@ -224,6 +229,10 @@ class optional
//! Assigns content from an optional.
optional& operator =(
optional&& opt)
#if defined(__GNUC__) && __GNUC__ == 12
__attribute__(
(noinline))
#endif // if defined(__GNUC__) && __GNUC__ == 12
{
reset();
storage_.engaged_ = opt.storage_.engaged_;
Expand Down
Loading