@@ -34,7 +34,7 @@ template<class C1, class C2, class R, class... A>
34
34
35
35
template <class C >
36
36
boost::json::value
37
- call ( C & c, boost::string_view method, boost::json::value const & args )
37
+ call ( C & c, boost::string_view method, boost::json::array const & args )
38
38
{
39
39
using Fd = boost::describe::describe_members<C,
40
40
boost::describe::mod_public | boost::describe::mod_function>;
@@ -46,7 +46,7 @@ template<class C>
46
46
47
47
if ( !found && method == D.name )
48
48
{
49
- result = call_impl ( c, D.pointer , args. as_array () );
49
+ result = call_impl ( c, D.pointer , args );
50
50
found = true ;
51
51
}
52
52
@@ -80,6 +80,6 @@ BOOST_DESCRIBE_STRUCT(Object, (), (greet, add))
80
80
int main ()
81
81
{
82
82
Object obj;
83
- std::cout << call ( obj, " greet" , {{ " world" } } ) << std::endl;
84
- std::cout << call ( obj, " add" , {{ 1 , 2 } } ) << std::endl;
83
+ std::cout << call ( obj, " greet" , { " world" } ) << std::endl;
84
+ std::cout << call ( obj, " add" , { 1 , 2 } ) << std::endl;
85
85
}
0 commit comments