mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This prevented `std::vector<std::string>` from being auto-conformed to `CxxRandomAccessCollection`. If an iterator type is templated, and does not have an explicit instantiation via a typedef or a using-decl, its specialization will not have an owning Clang module. Make sure we treat it as a part of the Clang module that owns the template decl. rdar://112762768 / resolves https://github.com/apple/swift/issues/67410
12 lines
321 B
C++
12 lines
321 B
C++
#ifndef TEST_INTEROP_CXX_STDLIB_INPUTS_STD_VECTOR_H
|
|
#define TEST_INTEROP_CXX_STDLIB_INPUTS_STD_VECTOR_H
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
using Vector = std::vector<int>;
|
|
using VectorOfString = std::vector<std::string>;
|
|
|
|
inline Vector initVector() { return {}; }
|
|
|
|
#endif // TEST_INTEROP_CXX_STDLIB_INPUTS_STD_VECTOR_H
|