Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dynamic track compilation on old compilers #1232

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion HEN_HOUSE/egs++/egs_particle_track.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include "egs_functions.h"

#include <fstream>
#include <cstring>
using namespace std;

/*! \brief A class representing a single track of a particle.
Expand Down Expand Up @@ -197,6 +198,7 @@ class EGS_EXPORT EGS_ParticleTrackContainer {
m_nTracks(0), m_totalTracks(0), m_isScoring(NULL), m_bufferSize(0), m_buffer(0),
m_trspFile(NULL) {
m_bufferSize = buf_size;
strncpy(head_inctime, "include time index=", 20);

// Initialize the arrays. The incltime variable set from the time_bool
// passed from the constructor (track scoring object gets incltime from
Expand Down Expand Up @@ -385,7 +387,7 @@ class EGS_EXPORT EGS_ParticleTrackContainer {
ofstream *m_trspFile; //!< the file to which data is output
string m_trspFilename; //!< filename of output file

char head_inctime[20] = "include time index=";
char head_inctime[20];
};

#endif