• R/O
  • SSH
  • HTTPS

eirrepo: Commit


Commit MetaInfo

Revision88 (tree)
Time2018-05-01 21:06:00
Authorquiret

Log Message

- fixed POD initialization of endian::little_endian and endian::big_endian by using default constructor

Change Summary

Incremental Difference

--- common/sdk/Endian.h (revision 87)
+++ common/sdk/Endian.h (revision 88)
@@ -3,6 +3,9 @@
33
44 #include "MacroUtils.h"
55
6+// For the inline functions.
7+#include <stdlib.h>
8+
69 // Endianness compatibility definitions.
710 namespace endian
811 {
@@ -48,10 +51,7 @@
4851 template <typename numberType>
4952 struct big_endian
5053 {
51- inline big_endian( void )
52- {
53- // Nothing really.
54- }
54+ inline big_endian( void ) = default;
5555
5656 inline big_endian( const big_endian& right )
5757 {
@@ -103,10 +103,7 @@
103103 template <typename numberType>
104104 struct little_endian
105105 {
106- inline little_endian( void )
107- {
108- // Nothing really.
109- }
106+ inline little_endian( void ) = default;
110107
111108 inline little_endian( const little_endian& right )
112109 {
Show on old repository browser