Index: src/InitTweak/InitTweak.cc
===================================================================
--- src/InitTweak/InitTweak.cc	(revision b5fed34bf3c800289ff90b5d739d1e22ec888d83)
+++ src/InitTweak/InitTweak.cc	(revision d76c588058daa6269114595a571223a110ced0ab)
@@ -756,4 +756,15 @@
 	}
 
+	bool isCopyFunction( const ast::FunctionDecl * decl ) {
+		const ast::FunctionType * ftype = decl->type;
+		if ( ftype->params.size() != 2 ) return false;
+
+		const ast::Type * t1 = getPointerBase( ftype->params.front()->get_type() );
+		if ( ! t1 ) return false;
+		const ast::Type * t2 = ftype->params.back()->get_type();
+		
+		return ResolvExpr::typesCompatibleIgnoreQualifiers( t1, t2, ast::SymbolTable{} );
+	}
+
 	FunctionDecl * isAssignment( Declaration * decl ) {
 		return isCopyFunction( decl, "?=?" );
