title: gdb: how can I call operator char const*()?
body: <p>My class has <code>  operator const char*() const { return &quot;foo&quot;; }</code>.</p>
  <p>I have gdb 7.12.1-48.el7 stopped where a variable <code>q</code> is of this class.</p>
  <p>I type <code>p q.</code> and when I hit the  key I see a completion list of all its methods and members, including <code>operator char const*</code>.</p>
  <p>However, I get this response to these commands.</p>
  <pre><code>(gdb) p q.operator char const*()
  Couldn't find method MyClass::operatorconst char *
  
  (gdb) p q.operator char const*
  There is no member or method named operatorconst char *.
  
  (gdb) p q.(operator char const*)
  A syntax error in expression, near `(operator char const*)'.
  
  (gdb) p q.(operator char const*)()
  A syntax error in expression, near `(operator char const*)()'.
  </code></pre>
  <p>Any ideas on how I can call this method?</p>