Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello
Can you help me to understand this warning.
warning: cannot pass objects of non-POD type `class XXX' through `...'thank you
mic

POD refers to Plain Ol' Datatype. Basically, this is something like
struct
{
int code;
char* str;
} phonic[] =
{
{ 1, "alpha" },
{ 2, "beta" },
...
};What you probably have is a class which you may be initializing in this way. With classes, it is preferable to initialize them using their constructors.
Phonic phonicLookup[] =
{
Phonic(1,"alpha"),
Phonic(2,"beta"),
...
};At a guess, that is what it is moaning about but without seeing the actuall code, it is just a guess.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |