Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
// traits to define which version is used
struct throwexceptions{};
struct dontthrowexceptions{};
const throwexceptions Throw;
template<typename T> class Bob
{
@peterhillman
peterhillman / misaligned.cpp
Last active July 26, 2019 06:10
minimal test for alignment issue with OpenEXR on arm7 architectures
#include <ImfOutputFile.h>
#include <ImfInputFile.h>
#include <ImfFrameBuffer.h>
#include <ImfChannelList.h>
using namespace OPENEXR_IMF_NAMESPACE;
int main(int argc,char* argv[])
{
Header h(1,1);