Commit Graph

116 Commits

Author SHA1 Message Date
Peter Dimov
7f69508eac Add CMakeLists.txt 2019-01-07 00:09:56 +02:00
Peter Dimov
6d811a2e72 Add test/quick.cpp 2019-01-07 00:02:14 +02:00
Peter Dimov
3f46081c59 Add mixed cxxstd variants of test_return_function 2018-11-14 00:17:36 +02:00
Peter Dimov
17716b63f2 Add test_return_function 2018-11-14 00:11:27 +02:00
Peter Dimov
30f31f894c Merge branch 'develop' into feature/more-lwtest 2018-11-13 21:16:15 +02:00
Peter Dimov
bfb0e4701e Remove remaining uses of Boost.Test 2018-11-13 19:43:12 +02:00
Peter Dimov
0a1a33a443 Update toolset name for gcc-4.4 2018-11-13 18:13:50 +02:00
Peter Dimov
c18d123137 Add test_mixed_cxxstd 2018-11-13 17:54:17 +02:00
Peter Dimov
5b2acbc175 Add throw/catch test for bad_function_call 2018-10-26 07:41:18 -04:00
Nikita Kniazev
df1f33eb00 TST: Do not catch exceptions by value 2018-10-22 18:34:40 -04:00
James E. King III
453860ff9c expand CI jobs for more coverage 2018-10-15 20:27:06 -04:00
Peter Dimov
d1a771b6ea Disable -fno-rtti test on g++-4.4/c++0x as <memory> does not compile 2018-09-24 20:30:41 +03:00
Peter Dimov
27808e2bd5 Simplify test/Jamfile 2018-09-24 19:31:58 +03:00
Peter Dimov
528afe6b41 Replace Boost.Test use with lwtest 2018-09-24 19:23:58 +03:00
Glen Fernandes
87c978d36e Use LightweightTest and NoExceptionsSupport from Core 2018-09-22 15:27:44 -04:00
Peter Dimov
eba48932f0 Skip test_empty_ref on g++ 7 in C++17 mode due to compiler bug 2017-12-17 02:18:11 +02:00
Edward Diener
c257d432e9 Add missing test. 2017-07-08 01:26:28 -04:00
Edward Diener
d6cff3991d Disable processing of function.hpp if it is included more than once in the TU and BOOST_FUNCTION_MAX_ARGS does not change. 2017-07-06 15:37:18 -04:00
Daniela Engert
0707a60115 Conditionally disable tests using deprecated/removed C++98 binders.
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-04-30 19:07:01 +02:00
Peter Dimov
c326d30f28 Remove std::unary/binary_function use, they have been removed in C++17 2016-11-06 14:43:42 +02:00
Antony Polukhin
8998778f51 Use Boost.TypeIndex to work with type_info to avoid bunch of workarounds and non-optimal operators. Added RTTI-off tests 2015-04-25 17:45:13 +03:00
Antony Polukhin
df1db75294 Less includes from Boost.Move and more tests 2014-10-02 15:40:33 +04:00
Antony Polukhin
27e9e1e372 Add support for function signatures with rvalue params 2014-09-29 20:14:06 +04:00
Marshall Clow
78eb6b1c8c Fixed two tests to work with C++11/libc++. The tests attempted to compare two ostream&, but didn't really. In c++03, both decayed to void *, which wre then compared. In c++11, the ostreams are comvertible to bool, but only explicitly, and this failed to compile. Use a custom struct with operator== instead of ostream in these tests instead. 2014-02-03 11:46:05 -08:00
Marshall Clow
352cb183fe Merge macro changes for Boost.Function to release branch
[SVN r82054]
2012-12-17 17:50:38 +00:00
Antony Polukhin
3ac49dc978 Merge from trunk: added move assignment and move constructors to Boost.Function (fixes #7330)
[SVN r80738]
2012-09-28 18:14:00 +00:00
Daniel James
3193df71b9 Function: Merge from trunk.
- Remove extra definition of operator(), since it's inline anyway.  Fixes
  #4765.
- Make sure that the cv flags are copied when we copy a reference to a function
  object.  Fixes #4325
- Fully qualified function calls to avoid ambiguity with new additions to
  standard. Thanks to Conrad Poelman. Fixes #4073
- Remove iterator workaround for newer versions of Visual Age C++. Thanks to
  'ccambly'. Fixes #3912
- Fix unused variable warning for Visual C++. Fixes #3618
- Testing flag for Visual C++.
- Removed all but one old-style cast, prevents GCC warnings, but breaks GCC
  2.95.3. Fixes #3410
- Fixed tab and newline issues from inspection report.



[SVN r70361]
2011-03-21 21:32:38 +00:00
Troy D. Straszheim
24a7ce00a8 rm cmake from the release branch before it goes out broken. Policy dictates that you never commit to release, you commit to trunk and merge to release.
[SVN r56941]
2009-10-17 01:10:45 +00:00
Troy D. Straszheim
c398dfceb3 Add basic copyright/license to keep cmake out of the inspection report
[SVN r55095]
2009-07-22 21:51:01 +00:00
Daniel James
d68cc8a51c Merge various function changes from trunk.
Merged revisions 49571,50064,51743,51745,53722,54616-54619 via svnmerge from 
https://svn.boost.org/svn/boost/trunk

........
  r49571 | noel_belcourt | 2008-11-03 18:37:49 +0000 (Mon, 03 Nov 2008) | 9 lines
  
  Both Sun and Pgi on Linux correctly put typeinfo into the std
  namespace, but function_base keys off the
  BOOST_NO_EXCEPTION_STD_NAMESPACE macro instead of the
  BOOST_NO_STD_TYPEINFO macro.  The attached patch changes
  function_base to use the typeinfo macro.  Because eVC 4.2 doesn't
  put typeinfo into the std namespace, I need to define
  BOOST_NO_STD_TYPEINFO only for this eVC version.
........
  r50064 | johnmaddock | 2008-12-02 10:10:46 +0000 (Tue, 02 Dec 2008) | 1 line
  
  Fix -Wundef warning and suspect usage of BOOST_STRICT_CONFIG.
........
  r51743 | dgregor | 2009-03-13 05:23:53 +0000 (Fri, 13 Mar 2009) | 11 lines
  
  Implement an optimization that David Abrahams and myself came up with,
  where Boost.Function uses a bit in the vtable pointer to indicate when
  the target function object has a trivial copy constructor, trivial
  destructor, and fits within the small object buffer. In this case, we
  just copy the bits of the function object rather than performing an
  indirect call to the manager.
  
  This results in a 60% speedup on a micro-benchmark that copies and
  calls such function objects repeatedly.
........
  r51745 | dgregor | 2009-03-13 05:49:02 +0000 (Fri, 13 Mar 2009) | 7 lines
  
  Make Boost.Function compile under BOOST_NO_EXCEPTIONS.
  
  Fixes #2499
  Fixes #2494
  Fixes #2469
  Fixes #2466
........
  r53722 | vladimir_prus | 2009-06-07 16:44:50 +0100 (Sun, 07 Jun 2009) | 4 lines
  
  Make Boost.Function compile with disabled exceptions.
  
  Closes #2900. Patch from Gabi Davar.
........
  r54616 | danieljames | 2009-07-03 23:20:26 +0100 (Fri, 03 Jul 2009) | 3 lines
  
  When copying boost::ref, copy even when the referenced function is empty. Fixes #2642
  
  Patch by Steven Watanabe
........
  r54617 | danieljames | 2009-07-03 23:20:52 +0100 (Fri, 03 Jul 2009) | 6 lines
  
  Add 'and later versions' to support info for GCC and Visual C++. Fixes #2847.
  
  I didn't explicitly specify the versions since no one's updating this
  list and it's highly unlikely that a future version will break this. The
  same could probably be done for the other compilers but I don't know
  them very well so I'm leaving them alone.
........
  r54618 | danieljames | 2009-07-03 23:21:40 +0100 (Fri, 03 Jul 2009) | 4 lines
  
  Fix Boost.Function unit tests for C++0x. Fixes #3012
  
  Based on a patch from Richard Webb. Changed a bit so that it also
  works for the Visual C++ 10 beta.
........
  r54619 | danieljames | 2009-07-03 23:22:03 +0100 (Fri, 03 Jul 2009) | 3 lines
  
  Work around Visual C++ copy constructor bug. Fixes #2929.
  
  Based on the patch by Steven Watanabe.
........


[SVN r54824]
2009-07-08 23:23:52 +00:00
Troy D. Straszheim
2fd383cd2e merge of cmake build files from trunk per beman
[SVN r50756]
2009-01-24 18:57:20 +00:00
Douglas Gregor
587658b047 Merge Boost.Function fixes from trunk
[SVN r49361]
2008-10-16 13:21:50 +00:00
Douglas Gregor
83309a36c7 Merge Boost.Function from the trunk
[SVN r47422]
2008-07-14 18:32:29 +00:00
Rene Rivera
2ecd62c612 Remove obsolete Boost.Build v1 files.
[SVN r35880]
2006-11-06 17:10:46 +00:00
Dave Abrahams
fdd91dbf91 Stop using assert() in tests
[SVN r33181]
2006-02-28 22:56:33 +00:00
Douglas Gregor
78f6b385d5 Small buffer optimization for Boost.Function
[SVN r32282]
2006-01-10 23:52:35 +00:00
Douglas Gregor
c5e64fab99 BOOST_CRITICAL_ERROR is no longer usable
[SVN r32185]
2005-12-30 02:27:13 +00:00
Douglas Gregor
8b816138bc Fix tests for compilers that actually have a real is_stateless
[SVN r28784]
2005-05-10 13:30:35 +00:00
Douglas Gregor
24ce3091d0 Peter Dimov's ADL workarounds
[SVN r27808]
2005-03-24 19:13:33 +00:00
Douglas Gregor
354b8b802e Test use of function_equal
[SVN r27733]
2005-03-18 05:01:49 +00:00
Peter Dimov
3b269d5de7 contains2_test added
[SVN r27722]
2005-03-17 12:48:40 +00:00
Stefan Slapeta
bb669b4fb5 Replaced BOOST_TEST
[SVN r27049]
2005-02-03 11:09:28 +00:00
Douglas Gregor
fdbbc2b3ff Doug Gregor->Douglas Gregor
[SVN r24018]
2004-07-25 02:59:30 +00:00
Douglas Gregor
5b4dc38727 boost/function/function_base.hpp:
- Work around a GCC <= 3.3 bug where the return type of a function template
    that cannot possibly match is instantiated when it should not be, causing
    errors in the use of operator==. This results in slightly reduced
    functionality.

libs/function/test/contains_test.cpp:
  - Don't test that which GCC cannot now handle


[SVN r23170]
2004-06-23 16:00:01 +00:00
Vladimir Prus
d929aaf814 Update V2 Jamfile
[SVN r23078]
2004-06-10 12:37:31 +00:00
Douglas Gregor
2c0e633307 Added contains() and function_equal()
[SVN r22483]
2004-03-12 03:38:20 +00:00
Douglas Gregor
746676d274 Fix semantics for comparison against reference_wrappers
[SVN r21901]
2004-01-24 23:31:40 +00:00
Douglas Gregor
cb1bcd5410 "contains" -> "target"
[SVN r21845]
2004-01-20 18:07:13 +00:00
Douglas Gregor
7d30d98efd boost/function/function_template.hpp, boost/function/function_base.hpp:
- Added "contains" member function to extract a pointer to the target
    function object if you know its type
  - Added operator== that can compare a Boost.Function object against a
    function object

libs/function/test/Jamfile, libs/function/test/contains_test.cpp:
  - Test contains() and equality comparison operators


[SVN r21844]
2004-01-20 18:02:02 +00:00
Douglas Gregor
8abd32bd81 Clean up warnings on Borland C++ 5.5
[SVN r21095]
2003-12-03 01:21:32 +00:00