Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
news [2016/02/26] terencenews [2016/02/26] – [February 26, 2016] terence
Line 3: Line 3:
 ===== February 26, 2016 ===== ===== February 26, 2016 =====
  
-Some code updates to [[:projects:endian_template]], based on feedback from the two reddit threads ([[http://tjgrant.com/wiki/projects:endian_template|/r/programming thread]], [[http://tjgrant.com/wiki/projects:endian_template|/r/cpp thread]]), resulted in some good updates:+Some code updates to [[:projects:endian_template]], based on feedback from the two reddit threads ([[https://www.reddit.com/r/programming/comments/47ebe4/endian_template_c_work_with_endian_types_in_c/|/r/programming thread]], [[https://www.reddit.com/r/cpp/comments/47e9e2/endian_template_c_work_with_endian_types_in_c/|/r/cpp thread]]), resulted in some good updates:
  
   * Renamed typedefs without ''_t'' postfix notation as this appears to be "reserved" by POSIX (thanks to reddit user "doodle77")   * Renamed typedefs without ''_t'' postfix notation as this appears to be "reserved" by POSIX (thanks to reddit user "doodle77")
Line 9: Line 9:
   * Changed endian testing method to use reinterpret_cast, as the previous was using "type punning", which in theory can have undefined behavior (thanks to reddit user "NasenSpray")   * Changed endian testing method to use reinterpret_cast, as the previous was using "type punning", which in theory can have undefined behavior (thanks to reddit user "NasenSpray")
   * Removed ::PassThru method as a small optimization   * Removed ::PassThru method as a small optimization
- 
 ===== February 23, 2016 ===== ===== February 23, 2016 =====
  
Print/export
QR Code
QR Code News (generated for current page)