| 61 | |
| 62 | template <typename TStream, typename TPath> |
| 63 | TStream OpenAndValidate(const TPath arg1) |
| 64 | { |
| 65 | auto fs = TStream(arg1); |
| 66 | if (!fs) { |
| 67 | std::stringstream ss; |
| 68 | ss << "���Դ��ļ�" << arg1 << "ʱ��������" << StreamStatusToString(fs); |
| 69 | throw Exception(ss.str()); |
| 70 | } |
| 71 | return fs; |
| 72 | } |
| 73 | |
| 74 | // �����״̬����ȷ�ԡ��������ȷ����������쳣�� |
| 75 | template <typename TStream> |
nothing calls this directly
no test coverage detected