Reviewer > Provided PTC reviews > Correctness reviews > Forbidden operation return data type (Reviewer Review)
  
Forbidden operation return data type (Reviewer Review)
Your standards may list certain data types as being unsuitable (or should at least be checked) for operation return types.
For example, in C++ these may be data types which are really pointers to objects making it unclear where the responsibility lies for destroying the object, such as a string object may be preferable as an operation return type to const char*.
Consequences
The consequences will depend on the reason why the operation return type has been added to this list.
Strategy
Again, this will depend on the reason the data type is forbidden.