summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-03-04 14:10:01 +0100
committerMurray Cumming <murrayc@murrayc.com>2016-03-04 14:13:06 +0100
commite5e5c3c6f034e369efa0849fc8d7549c92aa09b5 (patch)
tree87fd1f0ef4bbb1563e5869ddd9ce09acad1bb36e
parent638ff0a61820fe98b08d92911a22258fa5187588 (diff)
downloadsigc++-e5e5c3c6f034e369efa0849fc8d7549c92aa09b5.tar.gz
Use retype.h as a normal .h file.
Instead of generating it.
-rw-r--r--sigc++/.gitignore1
-rw-r--r--sigc++/adaptors/retype.h (renamed from sigc++/adaptors/macros/retype.h.m4)29
-rw-r--r--sigc++/filelist.am15
3 files changed, 10 insertions, 35 deletions
diff --git a/sigc++/.gitignore b/sigc++/.gitignore
index d8c2879..e64b803 100644
--- a/sigc++/.gitignore
+++ b/sigc++/.gitignore
@@ -1,3 +1,2 @@
/limit_reference.h
-/adaptors/retype.h
/functors/mem_fun.h
diff --git a/sigc++/adaptors/macros/retype.h.m4 b/sigc++/adaptors/retype.h
index 07b1f09..9a36fd7 100644
--- a/sigc++/adaptors/macros/retype.h.m4
+++ b/sigc++/adaptors/retype.h
@@ -1,25 +1,7 @@
-dnl Copyright 2003, The libsigc++ Development Team
-dnl
-dnl This library is free software; you can redistribute it and/or
-dnl modify it under the terms of the GNU Lesser General Public
-dnl License as published by the Free Software Foundation; either
-dnl version 2.1 of the License, or (at your option) any later version.
-dnl
-dnl This library is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-dnl Lesser General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU Lesser General Public
-dnl License along with this library; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-dnl
-divert(-1)
-
-include(template.macros.m4)
-
-divert(0)dnl
-_FIREWALL([ADAPTORS_RETYPE])
+// -*- c++ -*-
+/* Do not edit! -- generated file */
+#ifndef _SIGC_ADAPTORS_RETYPE_H_
+#define _SIGC_ADAPTORS_RETYPE_H_
#include <sigc++/adaptors/adaptor_trait.h>
#include <sigc++/functors/ptr_fun.h>
#include <sigc++/functors/mem_fun.h>
@@ -126,7 +108,7 @@ struct visitor<retype_functor<T_functor, T_type...> >
*
* @ingroup retype
*/
-template <LIST(class T_return, class... T_arg)>
+template <class T_return, class... T_arg>
inline decltype(auto)
retype(const slot<T_return, T_arg...>& _A_functor)
{ return retype_functor<slot<T_return, T_arg...>, T_arg...>
@@ -182,3 +164,4 @@ retype(const bound_mem_functor_base<T_limit_reference, T_func, T_obj_with_modifi
} /* namespace sigc */
+#endif /* _SIGC_ADAPTORS_RETYPE_H_ */
diff --git a/sigc++/filelist.am b/sigc++/filelist.am
index 31f9916..2aa8707 100644
--- a/sigc++/filelist.am
+++ b/sigc++/filelist.am
@@ -25,21 +25,13 @@ functors_m4 = mem_fun.h.m4
functors_built_cc =
functors_built_h = mem_fun.h
-# Adaptors (adaptors/)
-adaptors_m4 = retype.h.m4
-adaptors_built_cc =
-adaptors_built_h = retype.h
-
# Combine all the above parts with right directories prefixed
sigc_m4 = $(base_m4:%=macros/%) \
- $(functors_m4:%=functors/macros/%) \
- $(adaptors_m4:%=adaptors/macros/%)
+ $(functors_m4:%=functors/macros/%)
sigc_built_cc = $(base_built_cc) \
- $(functors_built_cc:%=functors/%) \
- $(adaptors_built_cc:%=adaptors/%)
+ $(functors_built_cc:%=functors/%)
sigc_built_h = $(base_built_h) \
- $(functors_built_h:%=functors/%) \
- $(adaptors_built_h:%=adaptors/%)
+ $(functors_built_h:%=functors/%)
sigc_public_h = \
bind.h \
@@ -68,6 +60,7 @@ sigc_public_h = \
adaptors/compose.h \
adaptors/exception_catch.h \
adaptors/hide.h \
+ adaptors/retype.h \
adaptors/track_obj.h \
adaptors/retype_return.h \
functors/functor_base.h \