Skip to content

Instantly share code, notes, and snippets.

@djg
Created May 19, 2010 04:22
Show Gist options
  • Save djg/405948 to your computer and use it in GitHub Desktop.
Save djg/405948 to your computer and use it in GitHub Desktop.
// Overloading operator, to allow custom list of objects to be passed
// eg: object obj()[, , , ];
struct list
{
...
list& operator,(list l);
...
};
class object
{
public:
...
void operator[](list l);
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment