Skip to content

Commit

Permalink
Expand comment on work-around
Browse files Browse the repository at this point in the history
  • Loading branch information
bifurcation committed Dec 15, 2023
1 parent a3218a9 commit b7cc914
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/mls/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ struct overloaded : Ts...
{
using Ts::operator()...;

// TODO(RLB) explanatory comment
// XXX(RLB) MSVC has a bug where it incorrectly computes the size of this
// type. Microsoft claims they have fixed it in the latest MSVC, and GitHub
// claims they are running a version with the fix. But in practice, we still
// hit it. Including this dummy variable is a work-around.
//
// https://developercommunity.visualstudio.com/t/runtime-stack-corruption-using-stdvisit/346200
int dummy = 0;
};

Expand Down

0 comments on commit b7cc914

Please sign in to comment.