Skip to content

Commit e4e8f46

Browse files
sadyrovgouriano
authored andcommitted
Removed format from sample app. JIRA CXX-13855
git-svn-id: https://anonsvn.ncbi.nlm.nih.gov/repos/v1/trunk/c++@104425 78c7ea69-d796-4a43-9a09-de51944f1b03
1 parent 39ac12c commit e4e8f46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sample/app/sftp/sftp_sample.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
#include <connect/ncbi_sftp.hpp>
3434
#include <connect/ncbi_conn_stream.hpp>
3535

36-
#include <format>
37-
3836
USING_NCBI_SCOPE;
3937

4038
class CSftpSampleApp : public CNcbiApplication
@@ -92,6 +90,8 @@ int CSftpSampleApp::Run()
9290
sftp_stream = make_unique<CSFTP_Stream>(sftp_session, args["path"].AsString());
9391
}
9492

93+
cout << boolalpha;
94+
9595
for (string line; s_GetCommandLine(input, line, echo); ) {
9696
*sftp_stream << line << endl;
9797

@@ -116,7 +116,7 @@ int CSftpSampleApp::Run()
116116
if (flags) {
117117
const auto s = sftp_stream->rdstate();
118118
auto l = [s](auto f) { return bool(s & f); };
119-
cout << format("bad={}, fail={}, eof={}", l(ios_base::badbit), l(ios_base::failbit), l(ios_base::eofbit)) << endl;
119+
cout << "bad=" << l(ios_base::badbit) << ", fail=" << l(ios_base::failbit) << ", eof=" << l(ios_base::eofbit) << endl;
120120
}
121121
sftp_stream->clear();
122122
}

0 commit comments

Comments
 (0)