mirror of
https://github.com/boostorg/python.git
synced 2026-01-26 18:52:26 +00:00
detail-ified the gen_*.py scripts
changed defaults to handle up to 10 arguments [SVN r8274]
This commit is contained in:
@@ -16,7 +16,7 @@ def gen_singleton(args):
|
||||
|
||||
# include "pyconfig.h"
|
||||
|
||||
namespace py {
|
||||
namespace py { namespace detail {
|
||||
|
||||
struct Empty {};
|
||||
template <class Derived, class Base = Empty>
|
||||
@@ -42,7 +42,7 @@ Derived* Singleton<Derived,Base>::singleton()
|
||||
return &x;
|
||||
}
|
||||
|
||||
}
|
||||
}} // namespace py::detail
|
||||
|
||||
#endif
|
||||
""")
|
||||
|
||||
Reference in New Issue
Block a user