[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::c_plus_plus

Title:C++
Notice:Read 1.* and use keywords (e.g. SHOW KEY/FULL KIT_CXX_VAX_VMS)
Moderator:DECCXX::AMARTIN
Created:Fri Nov 06 1987
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3604
Total number of notes:18242

3411.0. "long double trouble on 5.3-005 VAX" by COMICS::EDWARDSN (Dulce et decorum est pro PDP program) Fri Jan 24 1997 07:13

This is fixed at 5.5 but I thought I'd post it because I couldn't find any 
reference to it, just in case anyone else was looking.

#include <iostream.h>
int main()
{
  long double  c= 1.1;
  cout << c << endl;
  return(0);
}


          cout << c << endl;
        ..^
%CXX-E-OVERLDAMBIG, In this statement, the argument list "cout<<c" matches more
 than one "ostream::operator <<".
                At line number 5 in DISK$USERS:[EDWARDS.CXX]78536.CXX;1.

          cout << c << endl;
        ..^
%CXX-I-OVERMATCHTRY, In this statement, tried to match "ostream::operator <<"
 with the type "function (double) returning reference to ostream" declared at
 line 604 in IOSTREAM.
                At line number 5 in DISK$USERS:[EDWARDS.CXX]78536.CXX;1.

etc.

And then it lists what it can find as things it's tried to put in there as satisfying
the overload. None of them is long double. Seems to be missing.

Like I say. No fix required, just here for orthogonality.

Neil.
T.RTitleUserPersonal
Name
DateLines