Skip to content

Commit

Permalink
Add missing <tuple> include
Browse files Browse the repository at this point in the history
ranges.h needs std::get overloads from <tuple> but does not directly
include it. This causes compilation failures in MSVC with /permissive-.
On other platforms <tuple> is included as a dependency from other headers
(specifically from <memory>), but there is no such implicit dependency in
MSVC's STL.

Fixes fmtlib#2401
  • Loading branch information
joemmett committed Jul 1, 2021
1 parent 5f84739 commit 174d097
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/fmt/ranges.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#define FMT_RANGES_H_

#include <initializer_list>
#include <tuple>
#include <type_traits>

#include "format.h"
Expand Down

0 comments on commit 174d097

Please sign in to comment.