Skip to content

Commit 88c8f7b

Browse files
committed
[API] Let LuceneTypes.h be used to forward-declare Lucene::*Ptr types
Host programs can now just pull in LuceneTypes.h in their headers without cascading-in nearly as many other headers of Lucene, std:: and boost:: classes. * Note that some host programs may be using LuceneTypes.h directly, and depend on the (non-forward-) declarations of the classes that this file brings in. These programs should #include "Lucene.h" or some more specific themselves.
1 parent cee026a commit 88c8f7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/LuceneTypes.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
#ifndef LUCENETYPES_H
88
#define LUCENETYPES_H
99

10-
#include "Lucene.h"
10+
#import <boost/smart_ptr/shared_ptr.hpp>
11+
#import <boost/smart_ptr/weak_ptr.hpp>
1112

1213
#define DECLARE_SHARED_PTR(Type) \
1314
class Type; \

0 commit comments

Comments
 (0)