Skip to content
Snippets Groups Projects
Commit ea6782a0 authored by Valerio Mariani's avatar Valerio Mariani
Browse files

Ifdef for boost::filesystem::filename

parent 22ed2d31
Branches
Tags
No related merge requests found
......@@ -234,7 +234,13 @@ int main (int argc, char **argv)
EntityView model2=model.Select("aname!=CEN,NV,OT1,OT,CAY,CY,OXT,1OCT,NT,OT2,2OCT,OVL1,OC1,O1,OC2,O2,OVU1");
EntityView v1=model2.Select("not (rname==GLY and aname==CB)");
boost::filesystem::path pathstring(files[i]);
#if BOOST_FILESYSTEM_VERSION==3
String filestring=pathstring.filename().string();
#else
String filestring=pathstring.file_string();
#endif
if (filestring.substr(5,5)=="TS257" || filestring.substr(5,5)=="TS458" ) {
for (AtomHandleIter ait=v1.GetHandle().AtomsBegin();ait!=v1.GetHandle().AtomsEnd();++ait){
AtomHandle aitv = *ait;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment