Skip to content

Commit

Permalink
filter out non-wrapped member symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Colvin committed Jul 2, 2015
1 parent 414eb12 commit b750dbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ppyd.d
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ auto registerAggregateType(string aggStr, alias parent)()
{
static if(is(attr == pdef!Args, Args...))
{
return wrap_class!(agg, Args, Map!(Symbol!agg, __traits(allMembers, agg)))();
enum NotVoid(T) = !is(T == void);
return wrap_class!(agg, Args,
Filter!(NotVoid,
Map!(Symbol!agg, __traits(allMembers, agg))))();
/+
import std.algorithm, std.string;
/*pragma(msg, `return wrap_class!(agg, Args, ` ~
Expand Down

0 comments on commit b750dbd

Please sign in to comment.