Open kejxu opened 5 years ago
kinetic build was showing this error message:
error: ‘>>’ should be ‘> >’ within a nested template argument list
while melodic builds fine
afaik, this is unnecessary as long as >>
is not actually overridden, that's probably why melodic build was okay (since it uses a newer version of g++ compiler). However, this does not seem like something that has enough priority to be considered at the point. Changing >>
to > >
in favor of kinetic build.
reformatting
bondcpp
code according to https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines for better readabilitytype& name
overtype &name
, the actual type ofname
istype&
type* name
overtype *name
, the actual type ofname
istype*
, and use early return for a clearer representation of logic:
has been changed to
this also reduces the number of layers in code, providing better readability