Skip to content

Commit

Permalink
msvc2019
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed May 23, 2024
1 parent 83a3c4d commit ce9cd53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
with:
key: ${{ github.job }}-${{ matrix.mode}}-arch-${{ matrix.arch}}
- name: Configure CMake
run: cmake -B ${{github.workspace}}\build -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DYLT_ENABLE_SSL=${{matrix.ssl}} -DUSE_CCACHE=ON -DENABLE_CPP_20=OFF
run: cmake -B ${{github.workspace}}\build -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DYLT_ENABLE_SSL=${{matrix.ssl}} -DBUILD_STRUCT_PB=OFF -DUSE_CCACHE=ON -DENABLE_CPP_20=OFF
- name: Build
run: cmake --build ${{github.workspace}}\build
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion include/ylt/standalone/iguana/pb_reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ IGUANA_INLINE void from_pb(T& t, std::string_view pb_str) {
bool parse_done = false;
detail::for_each_n(
[&](auto i) IGUANA__INLINE_LAMBDA {
auto val = std::get<decltype(i)::value>(tp);
constexpr auto val = std::get<decltype(i)::value>(tp);
using sub_type = typename std::decay_t<decltype(val)>::sub_type;
using value_type = typename std::decay_t<decltype(val)>::value_type;
// sub_type is the element type when value_type is the variant type;
Expand Down

0 comments on commit ce9cd53

Please sign in to comment.