[llvm-bugs] [Bug 19460] Unable to detect operator>> (extraction operator) using libc++

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 30 04:49:12 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=19460

Eric Fiselier <eric at efcs.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |eric at efcs.ca
         Resolution|---                         |FIXED
           Assignee|mclow.lists at gmail.com       |eric at efcs.ca

--- Comment #3 from Eric Fiselier <eric at efcs.ca> ---
Fixed in r290750 (4.0).

> Not a bug, per se. std::basic_ios has
>
>  operator unspecified-bool-type()

I see `operator void*()` in C++03. However I don't think having a conversion to
void* is much better. So in r290750 I implemented it using a pointer to member
function instead. That way it should only really convert to bool.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161230/966abd91/attachment-0001.html>


More information about the llvm-bugs mailing list