cwCommon.h,cwCommonImpl.h : small changes.
This commit is contained in:
parent
8c8be07c63
commit
7df957f4a9
@ -45,7 +45,8 @@ namespace cw
|
||||
kFileNotFoundRC, // 26
|
||||
kTestFailRC, // 27
|
||||
kInvalidStateRC, // 28
|
||||
kBaseAppRC // 29
|
||||
kTypeMismatchRC, // 29
|
||||
kBaseAppRC // 30
|
||||
} cwRC_t;
|
||||
|
||||
typedef unsigned rc_t;
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <cstdint>
|
||||
#include <cmath>
|
||||
#include <complex>
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
#if defined(OS_LINUX) || defined(OS_OSX)
|
||||
#define cwPOSIX_FILE_SYS
|
||||
@ -158,7 +158,10 @@ namespace cw
|
||||
const char* label;
|
||||
} idLabelPair_t;
|
||||
|
||||
// Return nullptr if id is not found.
|
||||
const char* idToLabel( const idLabelPair_t* array, unsigned id, unsigned eolId );
|
||||
|
||||
// Returns eolId if the id is not found.
|
||||
unsigned labelToId( const idLabelPair_t* array, const char* label, unsigned eolId );
|
||||
|
||||
|
||||
@ -182,7 +185,7 @@ namespace cw
|
||||
template< typename T >
|
||||
bool is_even( const T& t )
|
||||
{
|
||||
assert( is_integral(t) );
|
||||
//assert( std::is_integral<T>(t) );
|
||||
return (t % 2) == 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user