Tags » Barry

Packing non-POD type: no warning, unexpected size?

Here is a rather contrived series of types. A2 is just a non-POD version of A:

template <size_t N>
struct A { 
    char data[N];
} __attribute__((packed));

template <size_t N>
struct A2 {
    A2() {
        memset(data, 0, N); 
    }   

    char data[N];
} __attribute__((packed));

template <template <size_t> class T>
struct C { 
    T<9> a;
    int32_t i;
    T<11> t2; 
} __attribute__((packed));
//}; // oops, forgot to pack

template <template <size_t> class T>
struct B : C<T> {
    char footer;
} __attribute__((packed));
… 183 more words
Recent Questions - Stack Overflow

Extending Python with C++: boost vs native

I need to make an existing C++ class usable from python, so I’ve been exploring using Boost.Python vs the native functionality provided by python directly. I coded up the first non-trivial example from the Boost… 158 more words

Recent Questions - Stack Overflow

‘The Flash’: You Can’t Save Everyone

The task of positioning The Flash on its own two feet alongside Arrow in The CW’s shared universe is now well and truly completed, with an audience established, a core structure in place, and even one of Barry Allen’s most iconic rivals introduced (and removed) to be used at a later date. 100 more words

TV

‘The Flash’: You Can’t Save Everyone

The task of positioning The Flash on its own two feet alongside Arrow in The CW’s shared universe is now well and truly completed, with an audience established, a core structure in place, and even one of Barry Allen’s most iconic rivals introduced (and removed) to be used at a later date. 100 more words

TV

‘The Flash’: You Can’t Save Everyone

The task of positioning The Flash on its own two feet alongside Arrow in The CW’s shared universe is now well and truly completed, with an audience established, a core structure in place, and even one of Barry Allen’s most iconic rivals introduced (and removed) to be used at a later date. 100 more words

TV

BARRY DEWITT LARRY JR - ROGERS, ARKANSAS

AGGRAVATED ASSAULT

CRIMINAL MISCHIEF

DOMESTIC BATTERY

TERRORISTIC THREATENING

ARKANSAS

Hopelessly Devoted - a TBT post

I like to celebrate ThrowBackThursday just as much as the next gal, and also I’m a really conscientious recycler.  So I thought I’d start a new series here on the blog.   1,323 more words