Skip to content

Commit 8b7ed6b

Browse files
committed
Documentation: add compiler workaround page
1 parent 49f56db commit 8b7ed6b

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

docs/source/compilers.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.. Copyright (c) 2016, Johan Mabille, Sylvain Corlay and Wolf Vollprecht
2+
3+
Distributed under the terms of the BSD 3-Clause License.
4+
5+
The full license is in the file LICENSE, distributed with this software.
6+
7+
Compiler workarounds
8+
====================
9+
10+
This page tracks the workarounds for the various compiler issues that we
11+
encountered in the development. This is mostly of interest for developers
12+
interested in contributing to xtensor-python.
13+
14+
GCC and ``std::allocator<long long>``
15+
-------------------------------------
16+
17+
GCC sometimes fails to automatically instantiate the ``std::allocator``
18+
class template for the types ``long long`` and ``unsigned long long``.
19+
Those allocators are thus explicitly instantiated in the dummy function
20+
``void long_long_allocator()`` in the file ``py_container.hpp``.

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ This software is licensed under the BSD-3-Clause license. See the LICENSE file f
7373
.. toctree::
7474
:caption: DEVELOPER ZONE
7575

76+
compilers
7677
releasing
7778

7879
.. _NumPy: http://www.numpy.org

0 commit comments

Comments
 (0)