Hi, I have a sample app which was written for MFC but I now have to convert the code to unix.
I have a class called Range which is derived from a structure RANGE :
Code:
typedef struct _tag_RANGE
{
ANGLE start;
ANGLE size;
//ANGLE max;
} RANGE;
There is an operator in class Range defined as:
Code:
public:
//operators
operator RANGE& () { return dynamic_cast<RANGE&>(*this); };
When I build my app I get a warning:
Quote:
Range.h:108: warning: conversion to a reference to a base class will never use a type conversion operator
|
How can I get rid of this warning and it would be great if someone could explain why it is happening?
Thanks