You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
317 B
20 lines
317 B
#include <memory>
|
|
#define OLC_PGE_APPLICATION
|
|
#include "pixelGameEngine.h"
|
|
|
|
using namespace olc;
|
|
|
|
struct MyStruct{
|
|
int val=4;
|
|
friend std::ostream&operator<<(std::ostream&os,MyStruct&rhs){
|
|
printf("Called\n");
|
|
return os;
|
|
}
|
|
};
|
|
|
|
int main()
|
|
{
|
|
MyStruct*st=new MyStruct({5});
|
|
std::cout<<*st<<std::endl;
|
|
return 0;
|
|
} |