C++17에 특정한 헤더 파일이 존재하는지 확인할 수 있도록 __has_include("파일명")과 __has_include(<파일명>)이란 전처리 상수가 있다. 

#if __has_include(<optional>)
    #include <iostream>
#elif __has_include("optional")
    #include "Release.h"
#else
    #include <optional>
#endif