Skip to content

Commit b65f4ff

Browse files
committed
added inlines
[SVN r12224]
1 parent 8d27b48 commit b65f4ff

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

include/boost/python/call.hpp

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -17,188 +17,188 @@
1717
namespace boost { namespace python {
1818

1919
template <class R>
20-
PyObject* call(R (*f)(), PyObject* args, PyObject* keywords)
20+
inline PyObject* call(R (*f)(), PyObject* args, PyObject* keywords)
2121
{
2222
return detail::returning<R>::call(f, args, keywords);
2323
}
2424

2525
template <class R, class A0>
26-
PyObject* call(R (*f)(A0), PyObject* args, PyObject* keywords)
26+
inline PyObject* call(R (*f)(A0), PyObject* args, PyObject* keywords)
2727
{
2828
return detail::returning<R>::call(f, args, keywords);
2929
}
3030

3131
template <class R, class A0, class A1>
32-
PyObject* call(R (*f)(A0, A1), PyObject* args, PyObject* keywords)
32+
inline PyObject* call(R (*f)(A0, A1), PyObject* args, PyObject* keywords)
3333
{
3434
return detail::returning<R>::call(f, args, keywords);
3535
}
3636

3737
template <class R, class A0, class A1, class A2>
38-
PyObject* call(R (*f)(A0, A1, A2), PyObject* args, PyObject* keywords)
38+
inline PyObject* call(R (*f)(A0, A1, A2), PyObject* args, PyObject* keywords)
3939
{
4040
return detail::returning<R>::call(f, args, keywords);
4141
}
4242

4343
template <class R, class A0, class A1, class A2, class A3>
44-
PyObject* call(R (*f)(A0, A1, A2, A3), PyObject* args, PyObject* keywords)
44+
inline PyObject* call(R (*f)(A0, A1, A2, A3), PyObject* args, PyObject* keywords)
4545
{
4646
return detail::returning<R>::call(f, args, keywords);
4747
}
4848

4949
template <class R, class A0, class A1, class A2, class A3, class A4>
50-
PyObject* call(R (*f)(A0, A1, A2, A3, A4), PyObject* args, PyObject* keywords)
50+
inline PyObject* call(R (*f)(A0, A1, A2, A3, A4), PyObject* args, PyObject* keywords)
5151
{
5252
return detail::returning<R>::call(f, args, keywords);
5353
}
5454

5555
template <class R, class A0, class A1, class A2, class A3, class A4, class A5>
56-
PyObject* call(R (*f)(A0, A1, A2, A3, A4, A5), PyObject* args, PyObject* keywords)
56+
inline PyObject* call(R (*f)(A0, A1, A2, A3, A4, A5), PyObject* args, PyObject* keywords)
5757
{
5858
return detail::returning<R>::call(f, args, keywords);
5959
}
6060

6161
// Member functions
6262
template <class R, class A0>
63-
PyObject* call(R (A0::*f)(), PyObject* args, PyObject* keywords)
63+
inline PyObject* call(R (A0::*f)(), PyObject* args, PyObject* keywords)
6464
{
6565
return detail::returning<R>::call(f, args, keywords);
6666
}
6767

6868
template <class R, class A0, class A1>
69-
PyObject* call(R (A0::*f)(A1), PyObject* args, PyObject* keywords)
69+
inline PyObject* call(R (A0::*f)(A1), PyObject* args, PyObject* keywords)
7070
{
7171
return detail::returning<R>::call(f, args, keywords);
7272
}
7373

7474
template <class R, class A0, class A1, class A2>
75-
PyObject* call(R (A0::*f)(A1, A2), PyObject* args, PyObject* keywords)
75+
inline PyObject* call(R (A0::*f)(A1, A2), PyObject* args, PyObject* keywords)
7676
{
7777
return detail::returning<R>::call(f, args, keywords);
7878
}
7979

8080
template <class R, class A0, class A1, class A2, class A3>
81-
PyObject* call(R (A0::*f)(A1, A2, A3), PyObject* args, PyObject* keywords)
81+
inline PyObject* call(R (A0::*f)(A1, A2, A3), PyObject* args, PyObject* keywords)
8282
{
8383
return detail::returning<R>::call(f, args, keywords);
8484
}
8585

8686
template <class R, class A0, class A1, class A2, class A3, class A4>
87-
PyObject* call(R (A0::*f)(A1, A2, A3, A4), PyObject* args, PyObject* keywords)
87+
inline PyObject* call(R (A0::*f)(A1, A2, A3, A4), PyObject* args, PyObject* keywords)
8888
{
8989
return detail::returning<R>::call(f, args, keywords);
9090
}
9191

9292
template <class R, class A0, class A1, class A2, class A3, class A4, class A5>
93-
PyObject* call(R (A0::*f)(A1, A2, A3, A4, A5), PyObject* args, PyObject* keywords)
93+
inline PyObject* call(R (A0::*f)(A1, A2, A3, A4, A5), PyObject* args, PyObject* keywords)
9494
{
9595
return detail::returning<R>::call(f, args, keywords);
9696
}
9797

9898
template <class R, class A0>
99-
PyObject* call(R (A0::*f)() const, PyObject* args, PyObject* keywords)
99+
inline PyObject* call(R (A0::*f)() const, PyObject* args, PyObject* keywords)
100100
{
101101
return detail::returning<R>::call(f, args, keywords);
102102
}
103103

104104
template <class R, class A0, class A1>
105-
PyObject* call(R (A0::*f)(A1) const, PyObject* args, PyObject* keywords)
105+
inline PyObject* call(R (A0::*f)(A1) const, PyObject* args, PyObject* keywords)
106106
{
107107
return detail::returning<R>::call(f, args, keywords);
108108
}
109109

110110
template <class R, class A0, class A1, class A2>
111-
PyObject* call(R (A0::*f)(A1, A2) const, PyObject* args, PyObject* keywords)
111+
inline PyObject* call(R (A0::*f)(A1, A2) const, PyObject* args, PyObject* keywords)
112112
{
113113
return detail::returning<R>::call(f, args, keywords);
114114
}
115115

116116
template <class R, class A0, class A1, class A2, class A3>
117-
PyObject* call(R (A0::*f)(A1, A2, A3) const, PyObject* args, PyObject* keywords)
117+
inline PyObject* call(R (A0::*f)(A1, A2, A3) const, PyObject* args, PyObject* keywords)
118118
{
119119
return detail::returning<R>::call(f, args, keywords);
120120
}
121121

122122
template <class R, class A0, class A1, class A2, class A3, class A4>
123-
PyObject* call(R (A0::*f)(A1, A2, A3, A4) const, PyObject* args, PyObject* keywords)
123+
inline PyObject* call(R (A0::*f)(A1, A2, A3, A4) const, PyObject* args, PyObject* keywords)
124124
{
125125
return detail::returning<R>::call(f, args, keywords);
126126
}
127127

128128
template <class R, class A0, class A1, class A2, class A3, class A4, class A5>
129-
PyObject* call(R (A0::*f)(A1, A2, A3, A4, A5) const, PyObject* args, PyObject* keywords)
129+
inline PyObject* call(R (A0::*f)(A1, A2, A3, A4, A5) const, PyObject* args, PyObject* keywords)
130130
{
131131
return detail::returning<R>::call(f, args, keywords);
132132
}
133133

134134
template <class R, class A0>
135-
PyObject* call(R (A0::*f)() volatile, PyObject* args, PyObject* keywords)
135+
inline PyObject* call(R (A0::*f)() volatile, PyObject* args, PyObject* keywords)
136136
{
137137
return detail::returning<R>::call(f, args, keywords);
138138
}
139139

140140
template <class R, class A0, class A1>
141-
PyObject* call(R (A0::*f)(A1) volatile, PyObject* args, PyObject* keywords)
141+
inline PyObject* call(R (A0::*f)(A1) volatile, PyObject* args, PyObject* keywords)
142142
{
143143
return detail::returning<R>::call(f, args, keywords);
144144
}
145145

146146
template <class R, class A0, class A1, class A2>
147-
PyObject* call(R (A0::*f)(A1, A2) volatile, PyObject* args, PyObject* keywords)
147+
inline PyObject* call(R (A0::*f)(A1, A2) volatile, PyObject* args, PyObject* keywords)
148148
{
149149
return detail::returning<R>::call(f, args, keywords);
150150
}
151151

152152
template <class R, class A0, class A1, class A2, class A3>
153-
PyObject* call(R (A0::*f)(A1, A2, A3) volatile, PyObject* args, PyObject* keywords)
153+
inline PyObject* call(R (A0::*f)(A1, A2, A3) volatile, PyObject* args, PyObject* keywords)
154154
{
155155
return detail::returning<R>::call(f, args, keywords);
156156
}
157157

158158
template <class R, class A0, class A1, class A2, class A3, class A4>
159-
PyObject* call(R (A0::*f)(A1, A2, A3, A4) volatile, PyObject* args, PyObject* keywords)
159+
inline PyObject* call(R (A0::*f)(A1, A2, A3, A4) volatile, PyObject* args, PyObject* keywords)
160160
{
161161
return detail::returning<R>::call(f, args, keywords);
162162
}
163163

164164
template <class R, class A0, class A1, class A2, class A3, class A4, class A5>
165-
PyObject* call(R (A0::*f)(A1, A2, A3, A4, A5) volatile, PyObject* args, PyObject* keywords)
165+
inline PyObject* call(R (A0::*f)(A1, A2, A3, A4, A5) volatile, PyObject* args, PyObject* keywords)
166166
{
167167
return detail::returning<R>::call(f, args, keywords);
168168
}
169169

170170
template <class R, class A0>
171-
PyObject* call(R (A0::*f)() const volatile, PyObject* args, PyObject* keywords)
171+
inline PyObject* call(R (A0::*f)() const volatile, PyObject* args, PyObject* keywords)
172172
{
173173
return detail::returning<R>::call(f, args, keywords);
174174
}
175175

176176
template <class R, class A0, class A1>
177-
PyObject* call(R (A0::*f)(A1) const volatile, PyObject* args, PyObject* keywords)
177+
inline PyObject* call(R (A0::*f)(A1) const volatile, PyObject* args, PyObject* keywords)
178178
{
179179
return detail::returning<R>::call(f, args, keywords);
180180
}
181181

182182
template <class R, class A0, class A1, class A2>
183-
PyObject* call(R (A0::*f)(A1, A2) const volatile, PyObject* args, PyObject* keywords)
183+
inline PyObject* call(R (A0::*f)(A1, A2) const volatile, PyObject* args, PyObject* keywords)
184184
{
185185
return detail::returning<R>::call(f, args, keywords);
186186
}
187187

188188
template <class R, class A0, class A1, class A2, class A3>
189-
PyObject* call(R (A0::*f)(A1, A2, A3) const volatile, PyObject* args, PyObject* keywords)
189+
inline PyObject* call(R (A0::*f)(A1, A2, A3) const volatile, PyObject* args, PyObject* keywords)
190190
{
191191
return detail::returning<R>::call(f, args, keywords);
192192
}
193193

194194
template <class R, class A0, class A1, class A2, class A3, class A4>
195-
PyObject* call(R (A0::*f)(A1, A2, A3, A4) const volatile, PyObject* args, PyObject* keywords)
195+
inline PyObject* call(R (A0::*f)(A1, A2, A3, A4) const volatile, PyObject* args, PyObject* keywords)
196196
{
197197
return detail::returning<R>::call(f, args, keywords);
198198
}
199199

200200
template <class R, class A0, class A1, class A2, class A3, class A4, class A5>
201-
PyObject* call(R (A0::*f)(A1, A2, A3, A4, A5) const volatile, PyObject* args, PyObject* keywords)
201+
inline PyObject* call(R (A0::*f)(A1, A2, A3, A4, A5) const volatile, PyObject* args, PyObject* keywords)
202202
{
203203
return detail::returning<R>::call(f, args, keywords);
204204
}

0 commit comments

Comments
 (0)