[ create a new paste ] login | about

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

C++, pasted on Mar 8:
1
2
3
4
5
6
int main()
{
  void ** pp = 0;
  void const ** cpp = static_cast<void const**>(pp);
  return 0;
}


Output:
1
2
3
In function 'int main()':
Line 4: error: invalid static_cast from type 'void**' to type 'const void**'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: