Skip to content

Instantly share code, notes, and snippets.

View smspillaz's full-sized avatar
💥
mindblown

Sam Spilsbury smspillaz

💥
mindblown
View GitHub Profile
https://gist.github.com/smspillaz/18d703c0ac3d9ea9bc59
@smspillaz
smspillaz / gist:5329830
Created April 7, 2013 09:51
clang error
smspillaz@interpol:~/Source/Compiz/dev/dev/merges/compiz/proposed/compiz.fix_1024304/build$ clang++ -std=c++11 test.cpp -o test.out
In file included from test.cpp:1:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/memory:64:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/allocator.h:48:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7/bits/c++allocator.h:34:
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/ext/new_allocator.h:110:23: error:
allocating an object of abstract class type 'Foo'
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/alloc_traits.h:256:8: note: