Skip to content

Commit c8967da

Browse files
authored
Fix missing header <algorithm> in tensor_ptr.h (#6778)
This commit import header <algorithm> explictly in extension/tensor/tensor_ptr.h, which uses `std::transfrom` defined in the header. Some recent compilers emits error (I checked gcc 14.1.0 / clang 18.1.6): ``` .../executorch/extension/tensor/tensor_ptr.h:114:12: error: no member named 'transform' in namespace 'std' ```
1 parent 2f6d64f commit c8967da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extension/tensor/tensor_ptr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#pragma once
1010

11+
#include <algorithm>
1112
#include <functional>
1213
#include <memory>
1314
#include <vector>

0 commit comments

Comments
 (0)