| 423 | } |
| 424 | |
| 425 | std::vector<vtkStringToken> vtkCellGrid::CellTypeArray() const |
| 426 | { |
| 427 | #if defined(_MSC_VER) && _MSC_VER >= 1930 && _MSC_VER < 1940 /*17.4+*/ |
| 428 | // MSVC 2022 shows LNK1161 when an exported method uses thread_local in its implementation. |
| 429 | // See https://github.com/pytorch/pytorch/issues/87957 for more. We omit the |
| 430 | // thread_local here, which makes this method non-threadsafe on Windows, which |
| 431 | // should be OK in most cases. |
| 432 | static std::vector<vtkStringToken> cellTypes; |
| 433 | #else |
| 434 | static thread_local std::vector<vtkStringToken> cellTypes; |
| 435 | #endif |
| 436 | cellTypes.clear(); |
| 437 | this->CellTypes(cellTypes); |
| 438 | return cellTypes; |
| 439 | } |
| 440 | |
| 441 | std::vector<std::string> vtkCellGrid::GetCellTypes() const |
| 442 | { |
no test coverage detected