| 255 | // ---------------------------------------------------------------------------------------- |
| 256 | |
| 257 | string make_scope_string ( |
| 258 | const std::vector<string>& namespaces, |
| 259 | unsigned long exclude_last_num_scopes = 0 |
| 260 | ) |
| 261 | { |
| 262 | string temp; |
| 263 | for (unsigned long i = 0; i + exclude_last_num_scopes < namespaces.size(); ++i) |
| 264 | { |
| 265 | if (namespaces[i].size() == 0) |
| 266 | continue; |
| 267 | |
| 268 | if (temp.size() == 0) |
| 269 | temp = namespaces[i]; |
| 270 | else |
| 271 | temp += "::" + namespaces[i]; |
| 272 | } |
| 273 | return temp; |
| 274 | } |
| 275 | |
| 276 | // ---------------------------------------------------------------------------------------- |
| 277 | |