- 
                Notifications
    
You must be signed in to change notification settings  - Fork 497
 
Union members cannot be optional #4797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
2a71f3e    to
    6255bd8      
    Compare
  
    780051a    to
    1d5c4a4      
    Compare
  
            
          
                docs/news.d/union-members.rst
              
                Outdated
          
        
      | .. news-prs: 4797 | ||
| .. news-start-section: Additions | ||
| - Add support for `@optional` union members. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - Add support for `@optional` union members. | |
| - Add support for ``@optional`` union members. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or probably better as:
| - Add support for `@optional` union members. | |
| - Add support for :ref:`xtypes--optional` union members. | 
| @optional TestStruct struct_field; | ||
| }; | ||
| 
               | 
          ||
| union TestUnion_Octet switch(long) { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use this union in a test to check serialization.
| 
           Add issue to xtypes spec and link in documentation.  | 
    
Problem ------- Union members cannot be marked `@optional`. Solution -------- Add support for `@optional`. This only applies to the C++11 language mapping.
1d5c4a4    to
    876046f      
    Compare
  
    
Problem
Union members cannot be marked
@optional.Solution
Add support for
@optional. This only applies to the C++11 language mapping.