[Variant] Minimum implementation to be variant friendly

Hello, What's the minimum implementation a struct needs to fulfill in order to be boost::variant friendly? Things like, does it need to support perfect forwarding? An assignment operator? And so on. Thanks! Michael Powell

On 11/12/2018 7:12 PM, Michael Powell via Boost-users wrote:
Hello,
What's the minimum implementation a struct needs to fulfill in order to be boost::variant friendly? Things like, does it need to support perfect forwarding? An assignment operator? And so on.
What do you mean by "boost::variant friendly" ?
Thanks!
Michael Powell

On Mon, Nov 12, 2018 at 7:24 PM Edward Diener via Boost-users
On 11/12/2018 7:12 PM, Michael Powell via Boost-users wrote:
Hello,
What's the minimum implementation a struct needs to fulfill in order to be boost::variant friendly? Things like, does it need to support perfect forwarding? An assignment operator? And so on.
What do you mean by "boost::variant friendly" ?
What else would it mean? Absent errors and so forth. What is the minimum implementation footprint that a struct (or class) need to implement?
Thanks!
Michael Powell
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users

On 13/11/2018 13:12, Michael Powell wrote:
What's the minimum implementation a struct needs to fulfill in order to be boost::variant friendly? Things like, does it need to support perfect forwarding? An assignment operator? And so on.
https://www.boost.org/doc/libs/1_68_0/doc/html/variant/reference.html#varian...

On Mon, Nov 12, 2018 at 7:35 PM Gavin Lambert via Boost-users
On 13/11/2018 13:12, Michael Powell wrote:
What's the minimum implementation a struct needs to fulfill in order to be boost::variant friendly? Things like, does it need to support perfect forwarding? An assignment operator? And so on.
Got 'er sorted. Thanks!
https://www.boost.org/doc/libs/1_68_0/doc/html/variant/reference.html#varian... _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Edward Diener
-
Gavin Lambert
-
Michael Powell