mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
These were due to several functions occurring that would have the same TRAP key. By making the functions static the TRAP keys will differ from each other.
22 lines
254 B
C++
22 lines
254 B
C++
template <typename T>
|
|
struct vector
|
|
{
|
|
T* begin() { return nullptr; }
|
|
T* end() { return nullptr; }
|
|
};
|
|
|
|
template <typename T>
|
|
void stream_it(vector<T>& t)
|
|
{
|
|
for(T& itr : t)
|
|
{
|
|
}
|
|
}
|
|
|
|
static int f()
|
|
{
|
|
vector<int> xs;
|
|
stream_it(xs);
|
|
return 0;
|
|
}
|