Surogate
38121f2af3
Allow string_view::at() to be constexpr again on VS2015
...
VS2015 doesn't support extended constexpr. Thanks to Lastique for the
ternary trick
2016-12-12 23:45:34 +01:00
Surogate
38b536ff05
Fixing visual studio compilation of string_view::at()
...
VS2013, VS2015 & VS2017RC don't like the ternary throwing an exception :
'return': cannot convert from 'void' to 'const char &'
Now using classic if when compiling on a windows platform.
2016-12-12 22:57:56 +01:00
zerotypos-found
816607e212
Remove tabs and Non-ASCII characters.
2016-11-15 11:59:51 +09:00
Peter Dimov
ff445c0ece
Remove std::binary_function use, it has been removed in C++17
2016-11-06 14:38:13 +02:00
Andrey Semashev
21dc552cf9
Added a workaround for gcc 4.6 in C++11 mode as it can't seem to handle defaulted functions with noexcept specifier. The problem was discovered with autotests.
2016-09-02 19:14:00 +03:00
Andrey Semashev
4814d1ebfe
Added another overload of to_string when default function template arguments are not supported.
...
The additional overload more closely emulates the official interface and allows to construct strings with custom allocators.
2016-09-01 22:08:28 +03:00
gnaggnoyil
e5932ebb08
fix compile error on basic_string_view::to_string when Allocator is user-defined
2016-09-01 21:56:20 +03:00
Marshall Clow
39577f86d1
Fix rfind (and other finders). Fixes bug https://svn.boost.org/trac/boost/ticket/9518
2016-08-14 11:20:28 -07:00
Marshall Clow
8392991c46
Remove extraneous semicolon; no functional change
2016-08-14 11:19:32 -07:00
Marshall Clow
c5b1256650
rename routines in detail namespace so that someone who includes both <string_ref> and <string_view> won't get duplicate decls
2016-08-14 11:11:12 -07:00
Marshall Clow
c56dd13592
Mark the copy ctor/assignment operator as '= default' when the compiler supports it. This makes these types trivially copy/move assignable/constructible. See https://svn.boost.org/trac/boost/ticket/11684
2016-07-27 11:18:18 -07:00
Marshall Clow
181f302ee4
Fix Ticket 12140; mark only single-arg ctor as explicit. Thanks to Thimo for the patch.
2016-06-15 15:50:21 -07:00
Marshall Clow
0b492bee9c
Re-install string_ref - to be removed in the future
2016-04-14 07:50:28 -07:00
Andrey Semashev
a9236d00a9
Ensure the file ends with a newline. Fixes compiler warnings.
2016-03-26 14:00:12 +03:00
Daniel Frey
1dfacff7ec
Renamed namespace detail to operators_detail
2016-02-23 20:30:16 +01:00
Daniel Frey
d767054a79
Merge branch 'develop' of github.com:boostorg/utility into develop
2016-02-22 20:39:26 +01:00
Daniel Frey
08a1b7da61
Added ADL protector
2016-02-22 20:39:16 +01:00
Marshall Clow
8ab8e36dcf
Remove the 'basic_string_ref template; use 'basic_string_view' instead. Keep the string_ref, etc typedefs around, though
2016-02-17 11:32:16 -08:00
Marshall Clow
1caa745dd7
Introduce new 'string_view' to match the one in the standard. Step #2 (up next) is to retire string_ref in favor of string_view
2015-12-21 11:39:59 -08:00
Andrey Semashev
cf5ad341ed
Added a missing include.
2015-09-11 19:31:18 +03:00
Marcel Raad
cb6500161b
Remove deprecated include
...
All that boost/iterator.hpp does is pull std::iterator into namespace boost. A comment in that header mentions: "This header is obsolete and will be deprecated."
2015-09-11 17:49:23 +02:00
Marshall Clow
13610caa36
Update copyright notice; change to_string to avoid UB by calling a different constructor. Fixes #11150
2015-03-28 12:02:41 -07:00
Andrey Semashev
651a869d4f
Reworked next() and prior() taking the distance arguments.
...
The new version should provide the expected behavior in the case (prior(v.end(), v.size()) == v.begin()). It should also work with integers now, as was originally intended by David Abrahams. Added tests to verify these new use cases.
2014-06-24 01:05:32 +04:00
Andrey Semashev
f1edd107eb
Merge pull request #12 from K-ballo/base-from-ref-member
...
Added base_from_member specialization for members of lvalue-reference types.
2014-06-12 03:54:08 +04:00
K-ballo
4531b2a2a6
Ported compressed_pair documentation to Quickbook
2014-06-11 19:48:23 -03:00
K-ballo
51e482edfe
Added base_from_member specialization for members of lvalue-reference type
2014-06-11 18:55:12 -03:00
Peter Dimov
87bc4c8dce
Remove declval.hpp, moved to type_traits.
2014-06-05 17:41:17 +03:00
Peter Dimov
34c11cb995
Remove generator_iterator.hpp, as it has been moved to iterator.
2014-06-05 02:34:39 +03:00
Andrey Semashev
10b8041472
boost::swap, boost::empty_deleter and explicit operator bool macros moved from Boost.Utility to Boost.Core.
2014-06-01 22:44:30 +04:00
Peter Dimov
1ed9aaa2a4
Remove headers that have been moved into core.
2014-06-01 03:22:30 +03:00
Andrey Semashev
df8e0c2dae
Merge pull request #5 from Lastique/patch-1
...
Fix compilation with gcc 4.5 in C++11 mode
2014-05-10 08:59:10 +04:00
Andrey Semashev
f5869d0f82
Merge pull request #6 from Lastique/develop
...
Added a new macro BOOST_EXPLICIT_OPERATOR_BOOL_NOEXCEPT
2014-05-10 08:57:32 +04:00
Eric Niebler
379e2111e2
value_init and swap work on nvidia gpu's
2014-05-01 15:29:43 -07:00
Andrey Semashev
d1bfa8e7b0
Added a new macro BOOST_EXPLICIT_OPERATOR_BOOL_NOEXCEPT, which implements a noexcept operator. Also added explicit noexcept specification for the constexpr macro.
2014-04-26 15:11:35 +04:00
Eric Niebler
de0e18ca0a
work around nvcc bug by only defining has_result when it's needed
2014-04-23 15:54:27 -07:00
Andrey Semashev
8ae3bfa961
Fix compilation with gcc 4.5 in C++11 mode
...
Gcc 4.5 does not allow non-public defaulted functions, so fall back to the C++03 version. Also replaced the deprecated macros with the new ones and adjusted formatting.
2014-04-10 00:27:41 +04:00
Peter Dimov
d4b5fde5a8
Remove assert from utility
2014-02-09 17:56:48 +02:00
Peter Dimov
b434003b13
Revert incorrect reversion of adf57817ec09cb8edd6032a30da6daec3edbe23f
2013-12-11 23:28:13 +02:00
Peter Dimov
50eafe2027
Fix addressof for nullptr_t values. Fixes #5487 .
2013-12-11 01:57:20 +02:00
Peter Dimov
79d9d9f514
Revert "Ref: Remove obsolete MSVC version check."
...
This reverts commit adf57817ec09cb8edd6032a30da6daec3edbe23f.
Conflicts:
include/boost/ref.hpp
2013-12-11 00:46:10 +02:00
Peter Dimov
f90812f1d9
Revert "Remove check for obsolete DMC version."
...
This reverts commit 4dc965909729ad0d7e1c669bbc4383d33ebe97c9.
2013-12-11 00:18:49 +02:00
Peter Dimov
244c343efe
Revert "Remove obsolete MSVC check from pragma guard"
...
This reverts commit 1fd5883b345a3c230daaad8ee93af5bc8f3209d5.
2013-12-11 00:13:48 +02:00
Stephen Kelly
03047e3f00
Simplify multi-component ifdefs containing BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
...
[SVN r86248]
2013-10-11 23:20:59 +00:00
Stephen Kelly
468fb2dd5f
Remove BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
...
Process #ifndef...#else...#endif blocks.
[SVN r86245]
2013-10-11 23:17:48 +00:00
Stephen Kelly
e97577a0ae
Remove obsolete files.
...
[SVN r86242]
2013-10-11 23:11:35 +00:00
Joel Falcou
a90bc68a7f
Fix #9170 - Add BOOST_FORCEINLINE in address_of for performance issues
...
[SVN r86125]
2013-10-01 15:05:39 +00:00
Joel Falcou
b39e4e5aea
Fix #9169 - Add BOOST_FORCEINLINE on boost::ref for performance issue
...
[SVN r86124]
2013-10-01 15:02:28 +00:00
Stephen Kelly
37c8f45edc
Operators: Remove obsolete GCC version check.
...
[SVN r86114]
2013-10-01 08:47:11 +00:00
Stephen Kelly
4dc9659097
Remove check for obsolete DMC version.
...
[SVN r86043]
2013-09-30 00:36:13 +00:00
Stephen Kelly
3d1646cf51
Detail: Remove obsolete MSVC version checks.
...
[SVN r86039]
2013-09-30 00:21:39 +00:00