Open kostrzewa opened 7 years ago
The renaming will, of course, break dependent codes..
What about some legacy typedef
? Let's say it gets renamed to Operator
. Then one could do this:
#ifndef __cplusplus
typedef Operator operator;
#endif
Dependent code could still use the name operator
, tmLQCD internally could use Operator
and be used with a C++ compiler.
Right now,
operator.h
cannot be included in any code compiled by a C++ compiler because we are using the keywordoperator
to name a struct. I would like to rename this at some point. For now, I will work around it by moving the definition of the operator types out ofoperator.h
into anoperator_types.h
, so that I can get on with writing the test code for qphix.