On Friday, July 3, 2015 at 12:49:27 AM UTC-4, Jeffrey Walton wrote:
>
> I'd like to get the following checked in to add some type safety to places 
> where sizeof(x)/sizeof(x[0]) is used.
>
> On Microsoft platforms, the type checks will be in-force. Other platforms 
> will enjoy the diagnostics from the Windows platform.
>
> I am going to resist expanding it to other platforms (similar to 
> http://stackoverflow.com/q/9679097). Its hard to test some of the older 
> platforms, so I'm not sure if the cleverness is worth potentially breaking 
> a compile.
>
> Any comments or objections?
>
> **********
>
Done (added to misc.h):

  * 
https://github.com/weidai11/cryptopp/commit/f2379159f8dbda5fba74fae3e72be1c67acc0054
  * https://sourceforge.net/p/cryptopp/code/569/

Thanks for the feedback.

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to