# Compas\_cgal C++ 17, 20

**URL:** <https://forum.compas-framework.org/t/compas-cgal-c-17-20/692>\
**Category:** Uncategorized\
**Created:** [March 16, 2023, 4:19pm UTC](https://forum.compas-framework.org/t/compas-cgal-c-17-20/692 "2023-03-16T16:19:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![petrasvestartas](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/petrasvestartas/32/305_2.png) [@petrasvestartas](https://forum.compas-framework.org/u/petrasvestartas)\
**Post date:** [March 16, 2023, 4:19pm UTC](https://forum.compas-framework.org/t/compas-cgal-c-17-20/692/1 "2023-03-16T16:19:48Z")

</div>

Hi,

This is not an issue, but a small possible addition to the compas\_cgal package.

I have previously ran into issues compiling the `compas_cgal` package with the later versions than C++ 14. Context: I was using `clipper2 + cgal` that has some methods that were written with a newer functionality of cpp.

I am referring to the `setup.py` file, line 104, since I saw it was commented out:

```python
    # flags = ['-std=c++17', '-std=c++14', '-std=c++11']
    flags = ["-std=c++14", "-std=c++11"]

```

C++ 17,20 will compile and work fine if you include these 2 lines in the main header e.g. **compas.h** :

```auto
#undef __cpp_lib_uncaught_exceptions
#include <CGAL/assertions.h>

```

The reason why it wont compile is that MAC and Windows has different uncaught exceptions declarations in their C++ versions…
