Skip to content

Instantly share code, notes, and snippets.

@VitaminaCPP
Last active August 29, 2015 14:08
Show Gist options
  • Save VitaminaCPP/4d6d7b1d1d68f98ccb94 to your computer and use it in GitHub Desktop.
Save VitaminaCPP/4d6d7b1d1d68f98ccb94 to your computer and use it in GitHub Desktop.
struct agregado
{
agregado &operator =(const agregado &a);
void funcion(int x);
private:
static int valor = 1;
};
class no_agregado
{
int valor;
public:
no_agregado(int v) : valor(v) {}
};
no_agregado array[] {no_agregado(1), no_agregado(2)};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment