Skip to content

Commit

Permalink
C++11-style std::array initialization
Browse files Browse the repository at this point in the history
because we live in the stone age and can't yet use C++14.
  • Loading branch information
mrwonko committed Nov 22, 2015
1 parent 9242bfd commit d56be4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/genericparser2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ static gsl::cstring_view GetToken( gsl::cstring_view& text, bool allowLineBreaks
// find the first of '\n', "//" or "/*"; that's end of token
auto tokenEnd = std::find( text.begin(), text.end(), '\n' );
static const std::array< char, 2 > commentPatterns[]{
{ '/', '*' },
{ '/', '/' }
{ { '/', '*' } },
{ { '/', '/' } }
};
for( auto& pattern : commentPatterns )
{
Expand Down

0 comments on commit d56be4f

Please sign in to comment.