<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">lør. 4. mai 2019 kl. 17:51 skrev Thiago Macieira <<a href="mailto:thiago.macieira@intel.com">thiago.macieira@intel.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">No, the size of something definitely fits in int on 32-bit systems. And why do <br>
you need to do any static_cast in the first place?<br></blockquote><div><br></div><div>We build our code using gcc with the options "-Wall -Wextra -Werror" and this leads us to have to use static_cast for example when comparing int and unsigned int (or std::size_t). A mix of using std::array, std::string and QVector/QByteArray often gives a few extra static casts, not that it bothers me too much. <br></div><div><br></div><div>Cheers,<br></div><div>Ola</div><div><br></div></div></div>