By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,793 Members | 1,488 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,793 IT Pros & Developers. It's quick & easy.

Is it possible to determine if a structure is non-POD?

P: n/a
Is there a way to determine at run-time (or maybe at compile-time)
that a given class is a POD structure or it has a constructor, without
generating compiler errors?

Let's say I have a template T that takes class X as an argument, and I
want to have a clear test that tells me if X is POD or not.

Thanks,

--
hm

Jun 30 '07 #1
Share this Question
Share on Google+
1 Reply

P: n/a
On 2007-06-30 15:43, hovik wrote:
Is there a way to determine at run-time (or maybe at compile-time)
that a given class is a POD structure or it has a constructor, without
generating compiler errors?

Let's say I have a template T that takes class X as an argument, and I
want to have a clear test that tells me if X is POD or not.
There's something like that in Boost, search for is_pod.

--
Erik Wikström
Jun 30 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.