X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=boost%2Fboost%2Fsignal.hpp;h=d1538e110d194865d390d9e2ff093d085544e64a;hb=b01a9dc187d9cd396a57463ad27511379dcdc9cd;hp=940694560dbbb144594075883a3003bc310343fb;hpb=9e27f631a78f02650fa5da65077c00cfc25abbe3;p=lyx.git diff --git a/boost/boost/signal.hpp b/boost/boost/signal.hpp index 940694560d..d1538e110d 100644 --- a/boost/boost/signal.hpp +++ b/boost/boost/signal.hpp @@ -1,22 +1,18 @@ // Boost.Signals library -// -// Copyright (C) 2001-2002 Doug Gregor (gregod@cs.rpi.edu) -// -// 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. - -// For more information, see http://www.boost.org + +// Copyright Douglas Gregor 2001-2006. 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/signals #ifndef BOOST_SIGNAL_HPP #define BOOST_SIGNAL_HPP -#define BOOST_SIGNALS_MAX_ARGS 10 +#ifndef BOOST_SIGNALS_MAX_ARGS +# define BOOST_SIGNALS_MAX_ARGS 10 +#endif #include #include @@ -33,17 +29,21 @@ #include #include +#ifdef BOOST_HAS_ABI_HEADERS +# include BOOST_ABI_PREFIX +#endif + namespace boost { -#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION +#ifndef BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX namespace BOOST_SIGNALS_NAMESPACE { namespace detail { - template - struct real_get_signal_impl; + class real_get_signal_impl; template { typedef function_traits traits; - + public: typedef signal0 { typedef function_traits traits; - + public: typedef signal1 class real_get_signal_impl<2, Signature, Combiner, Group, GroupCompare, SlotFunction> - { + { typedef function_traits traits; public: @@ -109,7 +109,7 @@ namespace boost { typename SlotFunction> class real_get_signal_impl<3, Signature, Combiner, Group, GroupCompare, SlotFunction> - { + { typedef function_traits traits; public: @@ -130,7 +130,7 @@ namespace boost { typename SlotFunction> class real_get_signal_impl<4, Signature, Combiner, Group, GroupCompare, SlotFunction> - { + { typedef function_traits traits; public: @@ -152,7 +152,7 @@ namespace boost { typename SlotFunction> class real_get_signal_impl<5, Signature, Combiner, Group, GroupCompare, SlotFunction> - { + { typedef function_traits traits; public: @@ -175,7 +175,7 @@ namespace boost { typename SlotFunction> class real_get_signal_impl<6, Signature, Combiner, Group, GroupCompare, SlotFunction> - { + { typedef function_traits traits; public: @@ -199,7 +199,7 @@ namespace boost { typename SlotFunction> class real_get_signal_impl<7, Signature, Combiner, Group, GroupCompare, SlotFunction> - { + { typedef function_traits traits; public: @@ -224,7 +224,7 @@ namespace boost { typename SlotFunction> class real_get_signal_impl<8, Signature, Combiner, Group, GroupCompare, SlotFunction> - { + { typedef function_traits traits; public: @@ -250,7 +250,7 @@ namespace boost { typename SlotFunction> class real_get_signal_impl<9, Signature, Combiner, Group, GroupCompare, SlotFunction> - { + { typedef function_traits traits; public: @@ -277,7 +277,7 @@ namespace boost { typename SlotFunction> class real_get_signal_impl<10, Signature, Combiner, Group, GroupCompare, SlotFunction> - { + { typedef function_traits traits; public: @@ -303,14 +303,14 @@ namespace boost { typename Group, typename GroupCompare, typename SlotFunction> - struct get_signal_impl : + struct get_signal_impl : public real_get_signal_impl<(function_traits::arity), Signature, Combiner, Group, GroupCompare, SlotFunction> - { + { }; } // end namespace detail @@ -323,7 +323,7 @@ namespace boost { typename Signature, // function type R (T1, T2, ..., TN) typename Combiner = last_value::result_type>, typename Group = int, - typename GroupCompare = std::less, + typename GroupCompare = std::less, typename SlotFunction = function > class signal : @@ -340,15 +340,19 @@ namespace boost { GroupCompare, SlotFunction>::type base_type; - public: + public: explicit signal(const Combiner& combiner = Combiner(), const GroupCompare& group_compare = GroupCompare()) : base_type(combiner, group_compare) { } }; -#endif // ndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION +#endif // ndef BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX } // end namespace boost +#ifdef BOOST_HAS_ABI_HEADERS +# include BOOST_ABI_SUFFIX +#endif + #endif // BOOST_SIGNAL_HPP