Re: Template technicality - What does the standard say?
On Wed, 15 Oct 2008 16:39:32 +1300, Ian Collins <ian-news@hotmail.co m>
wrote:
Not quite *that* tight, but 'live' is questionable anyway. That's not
the price I saw for the standard (or the one James quoted).
If that price is available, next problem is no credit card. I refuse
to get one so long as I'm on benefits for obvious reasons.
>By definition, a C data structure is a POD struct, so you can use offsetof.
template<typena me T>
struct This_May_Not_Be _POD
{
T Because_This_Ma y_Not_Be_POD;
};
That's the whole point.
On Wed, 15 Oct 2008 16:39:32 +1300, Ian Collins <ian-news@hotmail.co m>
wrote:
>Stephen Horne wrote:
>
>You can live off $18 a week, I'm impressed.
>>
>In my current circumstances, paying for the standard would mean not
>eating for a week,
>In my current circumstances, paying for the standard would mean not
>eating for a week,
>You can live off $18 a week, I'm impressed.
the price I saw for the standard (or the one James quoted).
If that price is available, next problem is no credit card. I refuse
to get one so long as I'm on benefits for obvious reasons.
>A constraint that means C data structure code cannot be adapted and
>wrapped in a C++ template? IIRC, one of the basic design principles of
>C++ is that people should be able to adapt their C libraries without a
>complete rewrite.
>>
>wrapped in a C++ template? IIRC, one of the basic design principles of
>C++ is that people should be able to adapt their C libraries without a
>complete rewrite.
>>
struct This_May_Not_Be _POD
{
T Because_This_Ma y_Not_Be_POD;
};
That's the whole point.
Comment