R
rkldabs
Hi,
Which portion of the C++ standard contains reference to the fact that
the following code is ill-formed?
#include <iostream>
using namespace std;
struct base{};
struct derived : base{};
void fn(base **p){}
int main(){
derived d;
derived *p = &d;
fn(&p);
}
Regards,
Dabs
Which portion of the C++ standard contains reference to the fact that
the following code is ill-formed?
#include <iostream>
using namespace std;
struct base{};
struct derived : base{};
void fn(base **p){}
int main(){
derived d;
derived *p = &d;
fn(&p);
}
Regards,
Dabs