Peter Dimov
587ceaf739
Enable constexpr in header-only mode as well
2018-01-22 04:56:40 +02:00
Peter Dimov
77817d8847
Fix MinGW link errors by properly exporting symbols
2018-01-22 02:20:01 +02:00
Peter Dimov
61b4d8ef24
Fix variant=release link errors
2018-01-21 21:42:22 +02:00
Peter Dimov
7b6dcf6ac6
Make error_code, error_condition literal if C++14 constexpr is available
2018-01-14 07:24:00 +02:00
Peter Dimov
d28c6ff128
Do not put categories in an unnamed namespace, as this is an ODR violation in header-only mode
2018-01-14 05:56:15 +02:00
Daniela Engert
706659a97f
std::basic_string::size() may return a size_type which is wider than an int.
...
Signed-off-by: Daniela Engert <dani@ngrt.de >
2017-12-16 10:40:49 +01:00
Peter Dimov
e367d65b6e
Fix use of _alloca under g++/clang (mingw/cygwin)
2017-11-01 20:59:34 +02:00
Zang MingJie
0daba59730
Fix MSVC compile error
2017-11-02 01:32:18 +08:00
Andrey Semashev
a4b67129ff
Updated Boost.WinAPI usage to the new location and namespace.
2017-10-25 00:44:18 +03:00
Peter Dimov
829a1320a7
Replace BOOST_SYSTEM_NO_DEPRECATED with BOOST_SYSTEM_ENABLE_DEPRECATED
2017-10-21 19:19:57 +03:00
Beman
cd38d2f778
Remove unused assignment. This was pull request 15, which was made against master instead of develop.
2017-09-08 15:44:52 -04:00
Daniela Engert
d8d71216e9
fix narrowing conversion
...
Signed-off-by: Daniela Engert <dani@ngrt.de >
2017-08-27 07:11:04 +02:00
Peter Dimov
cc26feabef
Fix error_code.ipp on Cygwin
2017-06-13 19:50:36 +03:00
Beman
f26bfc87aa
Fix typo
2017-06-04 11:28:14 -04:00
Beman
bd37d3b619
Reformat overly long lines of code.
2017-06-04 11:17:39 -04:00
Beman
4736079b2e
Fix boost::detail::winapi::ERROR_INSUFFICIENT_BUFFER_ in error_code.ipp (Thanks to Lastique). Use <boost/detail/winapi/error_codes.hpp> in windows_error.hpp. Add msvc project to build header-only version of error_code_test.
2017-06-04 11:01:08 -04:00
Jorge Lodos
67ae4c2aa7
Do not include windows.h in header only mode
2017-05-28 16:37:27 -04:00
Beman
388b3497af
Revert the prior change (do not include windows.h). It worked fine with the msvc toolset, testing with the last four VC++ versions. But it failed with GCC version 4.9.3 cygwin64.
2016-02-23 10:58:27 -05:00
Jorge Lodos
561ac00345
Do not include windows.h in header only mode
2016-02-18 22:00:34 -06:00
Steve Gates
2f2c97caa8
Fixing break on cygwin because local_free_on_destruction.hpp is not
...
included. Ticket #10137 .
2014-06-19 20:30:41 -07:00
Steve Gates
9c23522b73
Changes to make Boost System work on the Windows Runtime.
...
Basically just use FormatMessageW without FORMAT_MESSAGE_FROM_SYSTEM.
2014-05-27 12:28:13 -07:00
Beman
986e0f33ac
Ensure generic_category() and system_category() linkage is correct on Windows when BOOST_ERROR_CODE_HEADER_ONLY is specified.
2014-01-06 17:38:20 -05:00
Beman
459160d184
Move BOOST_SYSTEM_SOURCE definition to src/error_code.cpp so that automatic library variant selection is enabled.
2014-01-06 16:52:15 -05:00
Beman
42ee65f745
Move src/local_free_on_destruction.hpp to include/boost/detail. Was not being found by some VC++ versions, plus header only builds are supposed to be possible without non-header directories even being present.
2014-01-06 15:37:51 -05:00
Tim Blechmann
2c620a4f3a
fix header-only use of error codes
...
BOOST_ERROR_CODE_HEADER_ONLY was not working when the headers are separated
from the sources (e.g. when installing the headers to fhs-style /usr/include
or the like). to avoid this, we move the implementation to an .ipp file
Signed-off-by: Tim Blechmann <tim@klingt.org >
2014-01-04 12:36:44 +01:00