Fixing bizarre compilation error on recent clang

This commit is contained in:
Strahinja Val Markovic 2013-08-13 14:42:07 -07:00
parent 9d34fad24f
commit 938e2391e2

View File

@ -82,13 +82,13 @@ shared_ptr< TranslationUnit > TranslationUnitStore::GetOrCreate(
filename_to_flags_hash_[ filename ] = HashForFlags( flags ); filename_to_flags_hash_[ filename ] = HashForFlags( flags );
} }
shared_ptr< TranslationUnit > unit; boost::shared_ptr< TranslationUnit > unit;
try { try {
unit = make_shared< TranslationUnit >( filename, unit = boost::make_shared< TranslationUnit >( filename,
unsaved_files, unsaved_files,
flags, flags,
clang_index_ ); clang_index_ );
} catch ( ClangParseError & ) { } catch ( ClangParseError & ) {
Remove( filename ); Remove( filename );
return unit; return unit;