Re: pitch to string conversion in c++

2011-09-20 Thread Marc Hohl
Am 16.09.2011 10:43, schrieb David Kastrup: Marc Hohlm...@hohlart.de writes: [...] Unnecessary copying. Better do Pitch *current_pitch = unsmob_pitch (event-get_property (pitch)); string pitchstring = current_pitch-to_string (); Perfect. Thanks! Marc

pitch to string conversion in c++

2011-09-16 Thread Marc Hohl
Hello list, I tried to convert a pitch into a string like this: Pitch *current_pitch = unsmob_pitch (event-get_property (pitch)); string pitchstring = current_pitch.to_string (); and the compiler breaks with error: request for member 'to_string' in 'current_pitch', which is of non-class type

Re: pitch to string conversion in c++

2011-09-16 Thread David Kastrup
Marc Hohl m...@hohlart.de writes: Am 16.09.2011 10:12, schrieb Marc Hohl: Hello list, I tried to convert a pitch into a string like this: Pitch *current_pitch = unsmob_pitch (event-get_property (pitch)); string pitchstring = current_pitch.to_string (); Sorry for the noise - on console,