Skip to content

Commit 16834f6

Browse files
jimb3claude
andcommitted
Fix clang 17 build: add <fstream> include to RcppExports.cpp
XPtr<std::ifstream> requires the full definition of std::ifstream to instantiate its destructor. clang 17 (macOS) no longer provides it transitively through Rcpp.h, causing compilation failure. Note: if compileAttributes() is re-run, this include must be re-added. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 645efc2 commit 16834f6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: BinaryDosage
22
Title: Creates, Merges, and Reads Binary Dosage Files
3-
Version: 1.0.0.9016
3+
Version: 1.0.0.9017
44
Authors@R:
55
c(person(given = "John",
66
family = "Morrison",

src/RcppExports.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
22
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
33

4+
#include <fstream> // required for XPtr<std::ifstream> on clang 17+
45
#include <Rcpp.h>
56

67
using namespace Rcpp;

0 commit comments

Comments
 (0)