Commit c8d66aa
IOBuf::toString()
Summary:
`to<std::string>()` becomes awkward in templates, if called on an object with dependent type it needs to be invoked as `obj->template to<std::string>()`.
Since 99.999% of the use cases for `to()` are with `std::string`, add a convenience non-template method.
Reviewed By: ilvokhin
Differential Revision: D58672590
fbshipit-source-id: 6aeddff43feef1bd0587aadeda1f51a59e7d93ae1 parent f89a101 commit c8d66aa
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
1787 | 1788 | | |
1788 | 1789 | | |
1789 | 1790 | | |
1790 | | - | |
| 1791 | + | |
1791 | 1792 | | |
1792 | 1793 | | |
1793 | 1794 | | |
1794 | 1795 | | |
1795 | 1796 | | |
1796 | | - | |
| 1797 | + | |
1797 | 1798 | | |
1798 | 1799 | | |
1799 | 1800 | | |
1800 | 1801 | | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
1801 | 1809 | | |
1802 | 1810 | | |
1803 | 1811 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1805 | 1805 | | |
1806 | 1806 | | |
1807 | 1807 | | |
| 1808 | + | |
1808 | 1809 | | |
1809 | 1810 | | |
1810 | 1811 | | |
| |||
0 commit comments