1 // Copyright Daniel Wallin 2008. Use, modification and distribution is
2 // subject to the Boost Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 #ifndef LUABIND_COPY_POLICY_081021_HPP
6 # define LUABIND_COPY_POLICY_081021_HPP
8 # include <luabind/detail/policy.hpp>
18 void apply(lua_State
* L
, T
const& x
)
20 value_converter().apply(L
, x
);
24 void apply(lua_State
* L
, T
* x
)
34 struct copy_policy
: conversion_policy
<N
>
36 static void precall(lua_State
*, index_map
const&)
39 static void postcall(lua_State
*, index_map
const&)
42 template <class T
, class Direction
>
45 typedef copy_converter type
;
52 detail::policy_cons
<detail::copy_policy
<N
>, detail::null_type
>
53 copy(LUABIND_PLACEHOLDER_ARG(N
))
55 return detail::policy_cons
<detail::copy_policy
<N
>, detail::null_type
>();
58 } // namespace luabind
60 #endif // LUABIND_COPY_POLICY_081021_HPP