David Kimura created GEODE-4449:
-----------------------------------

             Summary: Replace macro-templates with plain templates
                 Key: GEODE-4449
                 URL: https://issues.apache.org/jira/browse/GEODE-4449
             Project: Geode
          Issue Type: Improvement
          Components: native client
            Reporter: David Kimura


Replace macro-templates in CacheableBuiltins.hpp from...

_GEODE_CACHEABLE_ARRAY_TYPE_(int8_t, CacheableBytes);
_GEODE_CACHEABLE_ARRAY_TYPE_(std::shared_ptr<CacheableString>, 
CacheableStringArray);

into...

using CacheableBytes = CacheableArray<int8_t, GeodeTypeIds::CacheableBytes>;
using CacheableStringArray = CacheableArray<std::shared_ptr<CacheableString>, 
GeodeTypeIds::CacheableStringArray>;

It also makes the code debuggable since most debuggers can step through 
templates, but not macros.  It also removes an unnecessary level of indirection 
by the preprocessor.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to