Guillaume Damiand
d544f4a5f7
Remove the unused variable warning for the deprecated variable default_random.
2016-06-03 18:11:34 +02:00
Clement Jamin
fd1b4889f0
Disable auto-link when using header-only CGAL
2016-03-09 10:20:05 +01:00
Sebastien Loriot
6c88ccaeab
Merge pull request #663 from afabri/CGAL-rename_cfg-GF
...
Fix macro name
2016-01-25 08:45:38 +01:00
Sébastien Loriot
551b3fa24d
Merge remote-tracking branch 'cgal/releases/CGAL-4.7-branch' into HEAD
2016-01-25 08:29:55 +01:00
Laurent Rineau
235b601b73
Fix a bug in Boost.Config<1.57 with gcc>=5.0
...
`BOOST_HAS_VARIADIC_TMPL` and `BOOST_NO_CXX11_VARIADIC_TEMPLATES` can be
wrong, with Boost-1.57 and gcc>=5.0.
Fixes the following warnings with gcc>=5.0 in C++98 mode:
> CGAL-4.8-Ic-106/include/CGAL/array.h:78:31: warning: variadic templates only available with -std=c++11 or -std=gnu++11
> template< typename T, typename... Args >
> ^
> CGAL-4.8-Ic-106/include/CGAL/array.h:80:28: warning: variadic templates only available with -std=c++11 or -std=gnu++11
> cpp11::array< T, 1 + sizeof...(Args) >
> ^
> CGAL-4.8-Ic-106/include/CGAL/array.h:81:42: warning: variadic templates only available with -std=c++11 or -std=gnu++11
> make_array(const T & t, const Args & ... args)
> ^
2016-01-25 08:28:06 +01:00
Andreas Fabri
567f027484
Fix macro name
2016-01-21 11:32:48 +01:00
Sebastien Loriot
155dba5e96
Merge pull request #641 from lrineau/Installation-do_not_use_deprecated_macros_from_Boost_Config-lrineau
...
Boost.Config: check both deprecated name and new names (Boost>=1.50)
2016-01-21 09:25:57 +01:00
Sebastien Loriot
a5ab3281d5
Merge pull request #642 from lrineau/Install-add_CGAL_CAN_USE_CXX11_ATOMIC-lrineau
...
Add <CGAL/atomic.h> and CGAL_CAN_USE_CXX11_ATOMIC
2016-01-21 09:25:39 +01:00
Laurent Rineau
fa54f719e6
Oops! Fix the Boost atomic header
2016-01-19 10:34:55 +01:00
Laurent Rineau
98a4949e96
Better version of <CGAL/atomic.h>
...
The implementation is simplified.
If no implementation of `::atomic` is available, `CGAL_NO_ATOMIC` is
defined to an error message (replaced the `#error`).
2016-01-18 15:51:34 +01:00
Laurent Rineau
e1adbbfb7a
Add #error Boost.Atomic was introduced in Boost-1.53
2016-01-15 18:59:34 +01:00
Laurent Rineau
a32ba4b0af
Boost.Config>=1.56 defines BOOST_NO_CXX11_HDR_ATOMIC
2016-01-15 18:46:46 +01:00
Laurent Rineau
68c6941cbb
Add <CGAL/atomic.h> and CGAL_CAN_USE_CXX11_ATOMIC
...
- Change the way the macros `CGAL_CAN_USE_CXX11_THREAD_LOCAL` and
`CGAL_CAN_USE_CXX11_MUTEX` are defined, so that other compilers are
also supported.
- Add the macro `CGAL_CAN_USE_CXX11_ATOMIC` and the header
`<CGAL/atomic.h>`.
2016-01-15 18:26:44 +01:00
Laurent Rineau
65cad196df
Check both deprecated name and new names (Boost>=1.50)
...
The deprecated names may be removed from future versions of Boost, and
we do not want our C++11 support be dropped for users using newest
versions of Boost.
2016-01-15 17:47:45 +01:00
Sebastien Loriot
4e9448cb9e
Merge pull request #451 from GilesBathgate/throwing-destructors
...
Introduces a CGAL_destructor_assertion macro.
2016-01-14 14:08:10 +01:00
Giles Bathgate
f0ac236713
Introduces a GCAL_NO_ASSERTIONS_BOOL macro
...
This macro is always defined. Its value will be true when assertions are defined
and false when assertions are not defined. This macro can then be used in place
of a true false constant, such as is needed for CGAL_NOEXCEPT.
2016-01-08 20:31:59 +00:00
Sebastien Loriot
2b49997c7e
Merge pull request #493 from afabri/CGLAL-thread_local_storage-GF
...
Remove boost thread dependency
2016-01-04 16:49:26 +01:00
Sébastien Loriot
c981ef2303
add missing license headers
2016-01-04 16:48:26 +01:00
Giles Bathgate
ab7b34846e
Use boost detection of CXX11 noexcept keyword.
...
BOOST_NO_NOEXCEPT and BOOST_NO_CXX11_NOEXCEPT provide a more
convenient way of determining whether the CXX11 noexcept keyword
is available.
See: http://www.boost.org/doc/libs/1_50_0/libs/config/doc/html/boost_config/boost_macro_reference.html
2015-12-10 10:54:36 +00:00
Andreas Fabri
4fec754ef8
put static into the macro and rename it
2015-12-02 20:40:15 +01:00
Andreas Fabri
dd17f1ad5d
Set BOOST_PARAMETER_MAX_ARITY to the needed value in the concerned packages
2015-12-01 17:05:53 +01:00
Sebastien Loriot
b5546cb802
Merge pull request #486 from lrineau/Installation-visual_leak_detector-lrineau
...
Enable the use of Visual Leak Detector in CGAL
2015-11-26 14:30:14 +01:00
Giles Bathgate
3a725499ad
Introduces CGAL_NOEXCEPT macro.
...
This macro is available for future compatibility with c++11, which
by default marks destructors noexcept(true). Some destructors
in CGAL do throw exceptions an so should be marked noexcept(false).
Since noexcept is not available in c++0x and below the macro is
disabled when CGAL_CXX11 is not defined since it is not required.
2015-11-23 16:47:59 +00:00
Andreas Fabri
bb9dddf336
Add a chapter in the developer manual. Fix a bug in tss.h in case CGAL_HAS_THREADS is not defined
2015-11-23 16:50:09 +01:00
Andreas Fabri
2ce8b07ec0
Define BOOST_PARAMETER_MAX_ARITY in <CGAL/config.h>
...
This macro has to be larger than the default value
and it must be set before including <boost/parameter.hpp>
Instead of setting it to 12 in the packages that
need it, we do this in <CGAL/config.h> and produce
an error if a user has set it to a value < 12
2015-11-16 11:21:31 +01:00
Andreas Fabri
9c08d41a54
Change the macro CGAL_THREAD_LOCAL_VARIABLE(TYPE,VAR,VAL)
...
VAL is the parameter to the variable VAR
2015-11-11 11:16:16 +01:00
Andreas Fabri
6b2c4dd7c6
Merge branch 'CGLAL-thread_local_storage-GF-old' into CGLAL-thread_local_storage-GF
2015-11-09 14:26:42 +01:00
Sebastien Loriot
2e493f297b
Merge pull request #389 from afabri/CGAL-Qt3-GF
...
Remove Qt3 based demos
2015-10-23 17:08:49 +02:00
Laurent Rineau
9e5487908b
Merge pull request #350 from sakrist/master
...
Changes for arm devices
2015-10-19 15:05:48 +02:00
Volodymyr Boichentsov
f06bea8d8d
fixed boost endianness check
2015-10-09 09:26:00 +01:00
Volodymyr Boichentsov
64cceb7bb4
revert back arch's define check
2015-10-08 07:26:09 +01:00
Volodymyr Boichentsov
ee8d3d7fa3
added endianness check with boost
...
added few more arch's
added include for `<OpenGLES/ES2/gl.h>` header for ios
2015-10-07 22:43:08 +01:00
Volodymyr Boichentsov
1518dad2de
start change
2015-10-07 22:42:16 +01:00
Sébastien Loriot
eb4f860f3b
remove mentions of Qt3
2015-10-05 15:19:58 +02:00
Andreas Fabri
ca54af03c2
Use <mutex> starting with Visual 2012 and g++ 4.8 with std=c++11
2015-10-05 12:19:13 +02:00
Andreas Fabri
1331fc6c09
commnt message
2015-10-02 10:26:26 +02:00
Clement Jamin
31e8415983
Merge branch 'CGLAL-thread_local_storage-GF-old' into CGLAL-thread_local_storage-GF
2015-10-01 14:51:09 +02:00
Andreas Fabri
47a41ccab0
cleanup
2015-10-01 12:38:55 +02:00
Guillaume Damiand
e4342d50d2
Merge remote-tracking branch 'cgal-dev/CGAL_headers_only-gdamiand_cjamin' into CGAL_headers_only-gdamiand_cjamin
2015-10-01 09:48:54 +02:00
Andreas Fabri
3d4a1be429
WIP with Clement
2015-10-01 09:47:47 +02:00
Guillaume Damiand
cf1c0ea0ca
Merge branch 'CGAL_headers_only-gdamiand_cjamin-OLD' into CGAL_headers_only-gdamiand_cjamin
2015-10-01 09:12:55 +02:00
Andreas Fabri
0d70d7b1ce
do not write 'static' in the macro so that we can use the macro also for a definition
2015-09-14 10:17:22 +02:00
Andreas Fabri
4ba71bce35
fix for the single threaded case
2015-09-14 09:50:03 +02:00
Andreas Fabri
ea612e9645
Improved macros to avoid #if #else where we want to use TLS
...
The Residue.cpp file still needs simplification
2015-09-11 18:01:51 +02:00
Andreas Fabri
a14cf913e9
WIP: In Lazy.h we now have a single macro for boost and c++11 thread
2015-09-11 14:54:11 +02:00
Andreas Fabri
aa649eccc9
bug fix
2015-09-11 08:58:32 +02:00
Andreas Fabri
434e66a0f1
move detection of that the keyword threadlocal can be used from Mpzf.h to config.h
2015-09-10 12:44:52 +02:00
Andreas Fabri
220651bc88
Use CGAL_THREAD_LOCAL as thread_local only comes with VC201
2015-09-04 18:09:50 +02:00
Andreas Fabri
52e5f3a521
Add a wrapper for the very basic mutex locking we make use of
2015-09-04 08:38:55 +02:00
Laurent Rineau
0fd6f2fa59
Merge pull request #288 from afabri/CGAL-add_hash-GF
...
No longer forward declare struct std:hash
Fixes issues #287 and #274 .
2015-08-27 15:41:50 +02:00