thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <>
Subject specializing / polymorphic types?
Date Sat, 13 Jun 2009 04:38:21 GMT
I'd like to define a struct filter_t such that i can define methods
get(string key, filter_t filter) and scan(string start_key, string
end_key, filter_t filter) and then specialize filter_t as
column_filter_t, time_filter_t, etc.

Right now we have a dozen get_ methods, which is bad enough as it is
but now we are facing a copy/paste to make scan versions of each.
Please tell me there is a better way.


View raw message