Changeset 167:ce858a642092 in finroc_plugins_data_ports


Ignore:
Timestamp:
12.12.2020 22:59:33 (2 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Children:
168:93edcd043226, 169:2b50c086b695
Phase:
public
Message:

Fixes clang compiler error and warnings

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • numeric/tNumber.cpp

    r149 r167  
    274274} 
    275275 
    276 template class rrlib::rtti::detail::tDataTypeInfo<finroc::data_ports::numeric::tNumber>; 
    277 template class rrlib::rtti::detail::tDataTypeInfo<std::vector<finroc::data_ports::numeric::tNumber>>; 
     276template struct rrlib::rtti::detail::tDataTypeInfo<finroc::data_ports::numeric::tNumber>; 
     277template struct rrlib::rtti::detail::tDataTypeInfo<std::vector<finroc::data_ports::numeric::tNumber>>; 
  • numeric/tNumber.h

    r149 r167  
    205205} 
    206206 
    207 extern template class rrlib::rtti::detail::tDataTypeInfo<finroc::data_ports::numeric::tNumber>; 
    208 extern template class rrlib::rtti::detail::tDataTypeInfo<std::vector<finroc::data_ports::numeric::tNumber>>; 
     207extern template struct rrlib::rtti::detail::tDataTypeInfo<finroc::data_ports::numeric::tNumber>; 
     208extern template struct rrlib::rtti::detail::tDataTypeInfo<std::vector<finroc::data_ports::numeric::tNumber>>; 
    209209 
    210210#endif 
  • tEvent.cpp

    r149 r167  
    133133} 
    134134 
    135 template class rrlib::rtti::detail::tDataTypeInfo<finroc::data_ports::tEvent>; 
     135template struct rrlib::rtti::detail::tDataTypeInfo<finroc::data_ports::tEvent>; 
    136136 
  • tEvent.h

    r149 r167  
    124124}; 
    125125 
    126 extern template class detail::tDataTypeInfo<finroc::data_ports::tEvent>; 
     126extern template struct detail::tDataTypeInfo<finroc::data_ports::tEvent>; 
    127127 
    128128} 
  • tPortPack.h

    r143 r167  
    151151  inline typename std::tuple_element<Tindex, std::tuple<TPort<TTypes>...>>::type &GetPort() 
    152152  { 
    153     static_assert(Tindex < this->NumberOfPorts(), "Port index not in range"); 
     153    static_assert(Tindex < NumberOfPorts(), "Port index not in range"); 
    154154    return *std::get<Tindex>(this->ports); 
    155155  } 
     
    254254  inline std::array<bool, sizeof...(Tindex)> GetChangedFlags(rrlib::util::tIntegerSequence<Tindex...>) 
    255255  { 
    256     return { std::get<Tindex>(this->ports)->HasChanged()... }; 
     256    return {{ std::get<Tindex>(this->ports)->HasChanged()... }}; 
    257257  } 
    258258 
Note: See TracChangeset for help on using the changeset viewer.