[ create a new paste ] login | about

Link: http://codepad.org/Uwhgrv7q    [ raw code | output | fork ]

C++, pasted on Aug 9:
1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include <cmath>

double log(const double x) { std::cout << "log!\n"; return x; }

int main(int argc, char *argv[])
{
  std::log(3.14);
  return 0;
}


Output:
1
2
3
In function 'double log(double)':
Line 4: error: declaration of 'double log(double)' throws different exceptions
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: