LWS logo
Service temporarily under maintenance, in read-only mode. Please come back later.
C++
4.8.1 (g++)
4.8.0 (g++)
4.7.3 (g++)
4.7.2 (g++)
4.6.4 (g++)
4.6.3 (g++)
3.2 (clang++)
13.0.1 (Intel)
C
4.8.1 (gcc)
4.8.0 (gcc)
4.7.3 (gcc)
4.7.2 (gcc)
4.6.4 (gcc)
4.6.3 (gcc)
3.2 (clang)
13.0.1 (Intel)
Python
3.3.0
2.7.3
1.9.0 (PyPy)
Ruby
2.0.0
1.9.3
JS
V8 (3.15.11)
SpiderMonkey (1.8.5)
PHP
5.4.6
Lua
5.2.1
2.0.0 (LuaJit)
Perl
Perl6 (2013.02.1)
5.14.2
C#
2.10 (mono)
F#
3.0 (mono)
Nemerle
1.1.1018.0 (mono)
Go
4.8.1 (GCCGo)
4.8.0 (GCCGo)
4.7.2 (GCCGo)
1.0.3 (GoogleGo)
Rust
0.6
0.5
D
v2 (gdc-4.6.3)
v2 (dmd-2.060)
Fortran
4.8.1 (GFortran)
4.8.0 (GFortran)
4.7.2 (GFortran)
Haskell
7.4.2
Lisp
2.49 (clisp)
1.1.12 (sbcl)
Code Snippets
Standard
iostream & main() without args & using namespace std
for-loop
calc (2.7)
calc (3.x)
Hello world
factorial
Hello world
echo
factorial
Hello world
Hello world
factorial
factorial
foreach
factorial
Hello world
factorial
Hello world
iostream & main() with args & using namespace std
iostream & main() with args
iostream & main() without args
stdio + stdlib & main() without args
stdio + stdlib & main() with args
try - catch
for-loop
ctor-dtor tracer
time measure
TypeName demangler
Fibonacci
Hello world
Hello world
factorial
Hello world
Hello world
ctor-dtor tracer with R-value ctor using boost.move
Hello world
factorial
perl-6 factorial
line: 0, col: 0 lines: 0 0 symbols
changes: 26
stdin data
Output
Compilation finished with errors:
In file included from source.cpp:2:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/list:63:
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/stl_list.h:115:33: error: call to implicitly-deleted copy constructor of 'BaseWrapper'
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/ext/new_allocator.h:110:23: note: in instantiation of function template specialization 'std::_List_node<BaseWrapper>::_List_node<BaseWrapper>' requested here
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/stl_list.h:503:32: note: in instantiation of function template specialization '__gnu_cxx::new_allocator<std::_List_node<BaseWrapper> >::construct<std::_List_node<BaseWrapper>, BaseWrapper>' requested here
_M_get_Node_allocator().construct(__p,
^
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/stl_list.h:1533:18: note: in instantiation of function template specialization 'std::list<BaseWrapper, std::allocator<BaseWrapper> >::_M_create_node<BaseWrapper>' requested here
_Node* __tmp = _M_create_node(std::forward<_Args>(__args)...);
^
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/stl_list.h:1002:15: note: in instantiation of function template specialization 'std::list<BaseWrapper, std::allocator<BaseWrapper> >::_M_insert<BaseWrapper>' requested here
{ this->_M_insert(end(), std::move(__x)); }
^
source.cpp:31:7: note: in instantiation of member function 'std::list<BaseWrapper, std::allocator<BaseWrapper> >::push_back' requested here
l.push_back(Derived());
^
source.cpp:20:27: note: copy constructor of 'BaseWrapper' is implicitly deleted because field 'ptr_' has a deleted copy constructor
std::unique_ptr<Base> ptr_;
^
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/unique_ptr.h:262:7: note: function has been explicitly marked deleted here
unique_ptr(const unique_ptr&) = delete;
^
1 error generated.