Menu

#47 C++11 using statements within classes not handled correctly.

3.x
closed
nobody
None
2016-09-06
2016-04-20
No

Need to be ignored by the classdesc processor (like typedefs) eg

template <int V>
struct PointStats: public MsgType
{
/// value of the magic number expected for this type
static const int s_type=PointMagic<V>::value;
/// type of other versions in this family
template <int U> using Self=PointStats<U>;
};

Discussion

  • High Performance Coder

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,10 +1,10 @@
     Need to be ignored by the classdesc processor (like typedefs) eg
    
    -  template <int V>
    +  `template <int V>
       struct PointStats: public MsgType
       {
         /// value of the magic number expected for this type
         static const int s_type=PointMagic<V>::value;
         /// type of other versions in this family
         template <int U> using Self=PointStats<U>;
    - };
    + };`
    
     
  • High Performance Coder

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,10 +1,10 @@
     Need to be ignored by the classdesc processor (like typedefs) eg
    
    -  `template <int V>
    -  struct PointStats: public MsgType
    -  {
    -    /// value of the magic number expected for this type
    -    static const int s_type=PointMagic<V>::value;
    -    /// type of other versions in this family
    -    template <int U> using Self=PointStats<U>;
    - };`
    +  `template <int V>`
    +  `struct PointStats: public MsgType`
    +  `{`
    +    `/// value of the magic number expected for this type`
    +    `static const int s_type=PointMagic<V>::value;`
    +    `/// type of other versions in this family`
    +    `template <int U> using Self=PointStats<U>;`
    +` };`
    
     
  • High Performance Coder

    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel