DxLibEx
char_constant.hpp
Go to the documentation of this file.
1 /*=============================================================================
2  Copyright (C) 2015-2017 DxLibEx project
3  https://github.com/Nagarei/DxLibEx/
4 
5  Distributed under the Boost Software License, Version 1.0.
6  (See http://www.boost.org/LICENSE_1_0.txt)
7 =============================================================================*/
8 #ifndef DXLE_INC_CHAR_CONSTANT_CHAR_CONSTANT_HPP_
9 #define DXLE_INC_CHAR_CONSTANT_CHAR_CONSTANT_HPP_
11 #include "dxlibex/config/defines.h"
12 #include <cwchar>
13 #if DXLE_USE_UNICODE_LITERALS
14 # include <cuchar>
15 #endif
16 namespace dxle{
17  namespace char_constant{
18  template<typename CharType>
19  DXLE_CONSTEXPR CharType comma();
20  template<> DXLE_CONSTEXPR char comma() { return ','; }
21  template<> DXLE_CONSTEXPR wchar_t comma() { return L','; }
22  }
23 }
24 #endif //DXLE_INC_CHAR_CONSTANT_CHAR_CONSTANT_HPP_
#define DXLE_CONSTEXPR
Definition: suffix.hpp:21
DXLE_CONSTEXPR CharType comma()
Definition: cast_if.hpp:12