You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One downside: similarly to std::make_unique (and friends), this needs the constructor of InnerT (here: EC_AffinePoint(std::unique_ptr<EC_AffinePoint_Data>)) to be public. 😞 This would currently not be the case for this particular example.
Perhaps its worth adding a utility for this pattern at one point. Something along those lines:
... the implementation of this function would then look like that:
... and it would also be RVO-friendlier.
One downside: similarly to
std::make_unique
(and friends), this needs the constructor ofInnerT
(here:EC_AffinePoint(std::unique_ptr<EC_AffinePoint_Data>)
) to be public. 😞 This would currently not be the case for this particular example.Originally posted by @reneme in #4446 (comment)
The text was updated successfully, but these errors were encountered: