Skip to content

Instantly share code, notes, and snippets.

@mondoo
mondoo / RuleOfFiveAndOverloads.h
Last active November 10, 2023 17:08
Rule of Five
class RuleOfFive
{
public:
// Default Constructor
RuleOfFive(int inInt)
{
intPtr = new int;
*intPtr = inInt;
}
#include <iostream>
template<typename T>
struct Vector {
T x;
T y;
public:
Vector(T inX, T inY)
{