| 216 | | |
| | 216 | // Boost.LibraryName |
| | 217 | // |
| | 218 | // Copyright (c) Year author name, author name |
| | 219 | // |
| | 220 | // Distributed under the Boost Software License, Version 1.0. |
| | 221 | // (See accompanying file LICENSE_1_0.txt or copy at |
| | 222 | // http://www.boost.org/LICENSE_1_0.txt) |
| | 223 | |
| | 224 | // Doc example |
| | 225 | |
| | 226 | #include <string> |
| | 227 | #include <iostream> |
| | 228 | |
| | 229 | //[ DocCodeFunctionName |
| | 230 | |
| | 231 | std::string greeting() |
| | 232 | { |
| | 233 | return "Hello world!"; |
| | 234 | } |
| | 235 | |
| | 236 | //] |
| | 237 | |
| | 238 | //[ DocCodeExampleName |
| | 239 | |
| | 240 | int main() |
| | 241 | { |
| | 242 | /*<< A callout bug >>*/ |
| | 243 | std::string message = greeting(); |
| | 244 | std::cout << message; /*< Inlined callout bug >*/ |
| | 245 | } |
| | 246 | |
| | 247 | //] |