mirror of
https://github.com/boostorg/regex.git
synced 2025-07-29 20:17:24 +02:00
Merge pull request #28 from Lastique/patch-1
Silence MSVC 14.1 warnings of narrowing conversion
This commit is contained in:
@ -43,8 +43,8 @@ namespace BOOST_REGEX_DETAIL_NS{
|
||||
template <class charT>
|
||||
struct digraph : public std::pair<charT, charT>
|
||||
{
|
||||
digraph() : std::pair<charT, charT>(0, 0){}
|
||||
digraph(charT c1) : std::pair<charT, charT>(c1, 0){}
|
||||
digraph() : std::pair<charT, charT>(charT(0), charT(0)){}
|
||||
digraph(charT c1) : std::pair<charT, charT>(c1, charT(0)){}
|
||||
digraph(charT c1, charT c2) : std::pair<charT, charT>(c1, c2)
|
||||
{}
|
||||
digraph(const digraph<charT>& d) : std::pair<charT, charT>(d.first, d.second){}
|
||||
|
Reference in New Issue
Block a user