- status changed from new to accepted
- milestone set to 1.1.0
- "Function and array types cannot be directly used as
function parameter types within the contract macros
but extra typedef declarations can be used to
workaround this limitation "
This workaround doesn't work in function templates
where the array element or dimension is deduced.
Yep :( Same issue with using BOOST_INDENTITY_TYPE but for that I support commas in types within the syntax. Maybe I should do the same of function pointers and arrays, I should provide a syntax to support them (so you can use them when deduced in templates) but also suggest that a typedef might get the work done with less syntactic burden.
Syntax could be:
result_type ([*|&] name) ( parameters ) ==>
(result_type) ([(*)|(&) name) ( parameters)
type name[dim][dim] ==>
(type) (name)[dim][dim]
Log in to post a comment.