Skip to content

Commit

Permalink
fix windows error
Browse files Browse the repository at this point in the history
  • Loading branch information
ianna committed Nov 7, 2024
1 parent 7085ec9 commit c38efb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions header-only/layout-builder/awkward/LayoutBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -749,13 +749,13 @@ namespace awkward {
class ContentsFormFunctor {
public:
// Modify the constructor to accept a std::map instead of a std::vector
ContentsFormFunctor(std::stringstream& out, const std::map<unsigned long, std::string>& content_names)
ContentsFormFunctor(std::stringstream& out, const std::map<size_t, std::string>& content_names)
: out_(out), content_names_(content_names) {}

// Template operator() to handle the content
template <class CONTENT>
void operator()(CONTENT& content) const {
unsigned long index = content.index; // Assuming CONTENT has an index
size_t index = content.index; // Assuming CONTENT has an index
auto it = content_names_.find(index); // Lookup content name in the map

if (it != content_names_.end()) {
Expand All @@ -769,7 +769,7 @@ namespace awkward {

private:
std::stringstream& out_;
const std::map<unsigned long, std::string>& content_names_; // Store the map by reference
const std::map<size_t, std::string>& content_names_; // Store the map by reference
};


Expand Down

0 comments on commit c38efb0

Please sign in to comment.