Changeset 1229


Ignore:
Timestamp:
07/27/17 19:24:20 (7 years ago)
Author:
oabramkina
Message:

Removing redundant ## token in the list of arguments of variadic macros. It's been an issue with gcc (starting verson 5(?)).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/declare_attribute.hpp

    r1025 r1229  
    1313         type operator=(const type & value)                       \ 
    1414         { return (CAttributeTemplate<type>::operator=(value)); } \ 
    15          virtual bool doSend() const { return helper(## __VA_ARGS__); }   \ 
     15         virtual bool doSend() const { return helper(__VA_ARGS__); }   \ 
    1616         bool helper(bool returnTrue=true) const { return returnTrue; }   \ 
    1717         virtual ~name##_attr(void)                               \ 
     
    3131         virtual bool isPublic() const                            \ 
    3232         { return false; }                                        \ 
    33          virtual bool doSend() const { return helper(## __VA_ARGS__); }   \ 
     33         virtual bool doSend() const { return helper(__VA_ARGS__); }   \ 
    3434         bool helper(bool returnTrue=true) const { return returnTrue; }   \ 
    3535         virtual ~name##_attr(void)                               \ 
     
    4343         using CAttributeArray<T_num, T_rank>::operator = ;       \ 
    4444         name##_attr(void) : CAttributeArray<T_num, T_rank> (#name, *CAttributeMap::Current) {} \ 
    45          virtual bool doSend() const { return helper(## __VA_ARGS__); }   \ 
     45         virtual bool doSend() const { return helper(__VA_ARGS__); }   \ 
    4646         bool helper(bool returnTrue=true) const { return returnTrue; }   \ 
    4747         virtual ~name##_attr(void) {}                            \ 
     
    5656         virtual bool isPublic() const                            \ 
    5757         { return false; }                                        \ 
    58          virtual bool doSend() const { return helper(## __VA_ARGS__); }   \ 
     58         virtual bool doSend() const { return helper(__VA_ARGS__); }   \ 
    5959         bool helper(bool returnTrue=true) const { return returnTrue; }   \ 
    6060         virtual ~name##_attr(void) {}                            \ 
     
    6666      public :                                                    \ 
    6767         name##_attr(void) : CAttributeEnum<Enum_##name>(#name, *CAttributeMap::Current) { } \ 
    68          virtual bool doSend() const { return helper(## __VA_ARGS__); }   \ 
     68         virtual bool doSend() const { return helper(__VA_ARGS__); }   \ 
    6969         bool helper(bool returnTrue=true) const { return returnTrue; }   \ 
    7070         virtual ~name##_attr(void) {}                            \ 
Note: See TracChangeset for help on using the changeset viewer.