I've noticed a number of calls to toString when assigning a cstring to a string. Assignment of cstrings to string variables has been supported since C++98 - see:
The only time a call to toString is necessary is when concatenating two cstrings with the '+' operator - i.e. only when neither LHS or RHS of s1 + s2 is a string. I've removed a lot of unnecessary calls to toString from my 'separate_genn_obj_compile' branch.
Note that this also makes the alternaive functions for char arrays, such as one of the addSynapsePopulations, redundant.
I've noticed a number of calls to toString when assigning a cstring to a string. Assignment of cstrings to string variables has been supported since C++98 - see:
http://www.cplusplus.com/reference/string/string/operator=/
The only time a call to toString is necessary is when concatenating two cstrings with the '+' operator - i.e. only when neither LHS or RHS of s1 + s2 is a string. I've removed a lot of unnecessary calls to toString from my 'separate_genn_obj_compile' branch.
Note that this also makes the alternaive functions for char arrays, such as one of the addSynapsePopulations, redundant.