Skip to content
  • #313 Given the following in C++

    Uncategorized cplusplus cpppolls
    2
    0 Votes
    2 Posts
    4 Views
    charette@mstdn.caC
    @shafik Are we worried about having a union with a single member? Or is there something else I missed?Had to look it up. Single-member unions are perfectly legal.What I didn't know is unions can also have methods, including constructors.