mardi 22 septembre 2015

Override =~ operator in c++

I want to override =~ operator in c++.
Is there any way to do this.

When i try to operator =~ (..)

compiler is giving error

error: expected initializer before '~' token

Note : I need to parse expression like :

{ abc == 123 && pqr =~ cb }

=~ operator meaning is pattern match .

Aucun commentaire:

Enregistrer un commentaire