-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
std::thread includes don't get resolved correctly on Windows #53
Comments
Hi, Can you share your caide.ini as well as the error that you're getting? |
Example code: #include <algorithm>
#include <iomanip>
#include <istream>
#include <map>
#include <numeric>
#include <ostream>
#include <set>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include <thread>
using namespace std;
// Powered by caide (code generator, tester, and library code inliner)
class Solution {
public:
void solve(std::istream& in, std::ostream& out) {
}
};
void solve(std::istream& in, std::ostream& out)
{
std::thread a = std::thread([]() {});
out << std::setprecision(12);
Solution solution;
solution.solve(in, out);
} the config is default for the VS extension:
Error:
|
Seems to be fixed in a recent libstdc++. Until I upgrade it, you can get it manually e.g. here: download and unpack the deb file, find |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
<thread>
header supplied with caide only actually defines anything when#if defined(_GLIBCXX_HAS_GTHREADS)
condition is satisfied. This makes it impossible to inline any code that depends onstd::thread
.The text was updated successfully, but these errors were encountered: