D
dust
Hi,
I have the following senario:
foo.h:
class A
{
...
struct B //public here
{
...
};
void func (const B& var1, int var2);
....
}
Now I have to test the function func in another module (test.cpp
file). I have #included this header file and created a object 'obj' of
type class A.
How can I create an object of type struct B so that I can pass this
object as parameter to function 'func()' which I'm testing in
'test.cpp'
I have the following senario:
foo.h:
class A
{
...
struct B //public here
{
...
};
void func (const B& var1, int var2);
....
}
Now I have to test the function func in another module (test.cpp
file). I have #included this header file and created a object 'obj' of
type class A.
How can I create an object of type struct B so that I can pass this
object as parameter to function 'func()' which I'm testing in
'test.cpp'