mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
Use "std::" consistently in the docs landing page examples
It was used in a couple of places, but not everywhere. Removing it would make the example using std::copy less clear, so add the missing occurrences of "std::".
This commit is contained in:
@@ -12,7 +12,7 @@ The simplest motivating code example for the SQL query that is supposed to retri
|
||||
|
||||
```cpp
|
||||
int id = ...;
|
||||
string name;
|
||||
std::string name;
|
||||
int salary;
|
||||
|
||||
sql << "select name, salary from persons where id = " << id,
|
||||
@@ -36,7 +36,7 @@ sql << "select first_name, last_name, date_of_birth "
|
||||
Integration with STL is also supported:
|
||||
|
||||
```cpp
|
||||
Rowset<string> rs = (sql.prepare << "select name from persons");
|
||||
Rowset<std::string> rs = (sql.prepare << "select name from persons");
|
||||
std::copy(rs.begin(), rs.end(), std::ostream_iterator<std::string>(std::cout, "\n"));
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user