For Boost 1.35 and earlier, use is_regular

Fixes 0F17CB7F-A000-4F99-8471-739948AD575F
This commit is contained in:
John Wiegley 2010-05-23 00:34:26 -06:00
parent 7bd0170d51
commit 3fab2e1333

View file

@ -663,7 +663,12 @@ void instance_t::include_directive(char * line)
for (filesystem::directory_iterator iter(parent_path);
iter != end;
++iter) {
if (is_regular_file(*iter)) {
#if BOOST_VERSION <= 103500
if (is_regular(*iter))
#else
if (is_regular_file(*iter))
#endif
{
#if BOOST_VERSION >= 103700
string base = (*iter).filename();
#else // BOOST_VERSION >= 103700