mirror of
https://github.com/boostorg/python.git
synced 2026-01-21 05:02:17 +00:00
- Forward-declared classes are ignored with AllFromHeader - Bug: now it's possible to exclude classes, functions and enums from AllFromHeader [SVN r18289]
39 lines
563 B
C++
39 lines
563 B
C++
#ifndef HEADER_TEST_H
|
|
#define HEADER_TEST_H
|
|
|
|
#include <map>
|
|
#include <string>
|
|
|
|
namespace header_test {
|
|
|
|
enum choice { red, blue };
|
|
|
|
inline std::string choice_str(choice c)
|
|
{
|
|
std::map<choice, std::string> choice_map;
|
|
choice_map[red] = "red";
|
|
choice_map[blue] = "blue";
|
|
return choice_map[c];
|
|
}
|
|
|
|
struct C
|
|
{
|
|
choice c;
|
|
|
|
std::string get()
|
|
{
|
|
return choice_str(c);
|
|
}
|
|
};
|
|
|
|
// test the exclusion of the following
|
|
|
|
struct ForwardDeclared; // should be excluded automatically
|
|
struct A {};
|
|
void foo();
|
|
enum bar { value };
|
|
|
|
}
|
|
|
|
#endif
|