initial check in

This commit is contained in:
2012-12-06 21:43:03 +04:00
commit 4bc273824d
179 changed files with 29415 additions and 0 deletions

29
typedefed_operators.cpp Normal file
View File

@@ -0,0 +1,29 @@
#include <iostream>
typedef long mylong;
class A
{
public:
int val;
operator mylong ()
{
return (mylong)val;
}
operator long ()
{
return (long)val;
}
};
int main ( void )
{
A o;
o.val = 30;
std::cout << (mylong)o << std::endl;
std::cout << (long)o << std::endl;
}