-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update license to the new Boost license (yay!)
[SVN r20235]
- Loading branch information
1 parent
fad4073
commit 8c8f072
Showing
42 changed files
with
165 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library examples | ||
|
||
// Copyright (C) 2001 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2001-2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
// Boost.Function library examples | ||
|
||
// Copyright (C) 2001 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2001-2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
|
||
#include <iostream> | ||
#include <boost/function.hpp> | ||
|
||
struct int_div { | ||
float operator()(int x, int y) const { return ((float)x)/y; }; | ||
struct int_div { | ||
float operator()(int x, int y) const { return ((float)x)/y; }; | ||
}; | ||
|
||
int | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library examples | ||
|
||
// Copyright (C) 2001 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2001-2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
|
||
|
@@ -28,7 +22,7 @@ int | |
main() | ||
{ | ||
// The second parameter should be int[], but some compilers (e.g., GCC) | ||
// complain about this | ||
// complain about this | ||
boost::function<void, int*, int, int&, float&> sum_avg; | ||
|
||
sum_avg = &do_sum_avg; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library | ||
|
||
// Copyright (C) 2001, 2002 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2001-2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org/libs/function | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library | ||
|
||
// Copyright (C) 2002-2003 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
#if !defined(BOOST_PP_IS_ITERATING) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library | ||
|
||
// Copyright (C) 2003 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library | ||
|
||
// Copyright (C) 2002-2003 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2002-2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library | ||
|
||
// Copyright (C) 2002-2003 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2002-2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library | ||
|
||
// Copyright (C) 2002-2003 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2002-2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library | ||
|
||
// Copyright (C) 2002-2003 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2002-2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library | ||
|
||
// Copyright (C) 2002-2003 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2002-2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library | ||
|
||
// Copyright (C) 2002-2003 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2002-2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library | ||
|
||
// Copyright (C) 2002-2003 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2002-2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library | ||
|
||
// Copyright (C) 2002-2003 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2002-2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library | ||
|
||
// Copyright (C) 2002-2003 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2002-2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library | ||
|
||
// Copyright (C) 2002-2003 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2002-2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library | ||
|
||
// Copyright (C) 2002-2003 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2002-2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
// Boost.Function library | ||
|
||
// Copyright (C) 2002-2003 Doug Gregor ([email protected]) | ||
// | ||
// Permission to copy, use, sell and distribute this software is granted | ||
// provided this copyright notice appears in all copies. | ||
// Permission to modify the code and to distribute modified code is granted | ||
// provided this copyright notice appears in all copies, and a notice | ||
// that the code was modified is included with the copyright notice. | ||
// | ||
// This software is provided "as is" without express or implied warranty, | ||
// and with no claim as to its suitability for any purpose. | ||
// Copyright Doug Gregor 2002-2003. Use, modification and | ||
// distribution is subject to the Boost Software License, Version | ||
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// For more information, see http://www.boost.org | ||
|
||
|
Oops, something went wrong.