This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/24056] failed lookup of static non-member operator function with certain templated arguments



------- Comment #4 from bangerth at dealii dot org  2006-10-12 01:03 -------
The operator== you want to call is used in a context in which the
template argument cannot be deduced (a "non-deduceable context").

If you want to use this construct, you will have to write something like
    templated_nested::operator==<int> (x, y);
instead of plain
    x == y;

W.


-- 

bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bangerth at dealii dot org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24056


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]