Skip to content

Commit 9168324

Browse files
committed
Don't export header-only classes
Signed-off-by: Adam Glustein <adam.glustein@point72.com>
1 parent eb659d8 commit 9168324

19 files changed

Lines changed: 32 additions & 32 deletions

cpp/csp/core/BasicAllocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace csp
1515
{
1616

1717
// Extremely basic non-thread safe fixed-size allocator
18-
class CSPCORE_EXPORT BasicAllocator
18+
class BasicAllocator
1919
{
2020
public:
2121
//elemsize is size of a single alloc, blockSize is number of elements to

cpp/csp/core/DynamicBitSet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace csp
99
{
1010

1111
template<typename NodeT = uint64_t, typename IndexT = int32_t>
12-
class CSPCORE_EXPORT DynamicBitSet
12+
class DynamicBitSet
1313
{
1414

1515
public:

cpp/csp/core/Enum.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ bool UnknownOnInvalidValue(long) { return false; }
7373

7474
START_PACKED
7575
template<typename EnumTraits>
76-
struct CSPCORE_EXPORT Enum : public EnumTraits
76+
struct CSP_PUBLIC Enum : public EnumTraits // need to export for autogen build
7777
{
7878
using EnumV = typename EnumTraits::_enum;
7979
using Mapping = std::vector<std::string>;

cpp/csp/core/EnumBitSet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace csp
1414
//Utility class to hold enums as a bitmask ( where enum values are incremental from 0 )
1515
//enum must have a NUM_TYPES entry for number of entries
1616
template< typename EnumT >
17-
class CSPCORE_EXPORT EnumBitSet
17+
class EnumBitSet
1818
{
1919
using value_type = uint64_t;
2020

cpp/csp/core/Exception.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace csp
1111
{
1212

13-
class CSP_PUBLIC Exception : public std::exception
13+
class CSPCORE_EXPORT Exception : public std::exception
1414
{
1515
public:
1616
Exception( const char * exType, const std::string & description, const char * file, const char * func, int line ) :

cpp/csp/core/Generator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace csp
88
{
99
template< typename V, typename ...Args >
10-
class CSPCORE_EXPORT Generator
10+
class Generator
1111
{
1212
public:
1313
using Ptr = std::shared_ptr<Generator<V, Args...>>;

cpp/csp/core/QueueWaiter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace csp
1414

1515
class TimeDelta;
1616

17-
class CSPCORE_EXPORT QueueWaiter
17+
class QueueWaiter
1818
{
1919
public:
2020
QueueWaiter() : m_eventsPending( false )

cpp/csp/core/TaggedPointerUnion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct IndexOf<T, TypeList<TOther, Ts...> >
2626

2727

2828
template<typename... Ts>
29-
class CSPCORE_EXPORT TaggedPointerUnion
29+
class TaggedPointerUnion
3030
{
3131
public:
3232
static inline constexpr size_t NUM_TAGS = sizeof...(Ts);

cpp/csp/core/Time.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const int64_t NANOS_PER_SECOND = 1000000000;
2121
const int64_t SECONDS_PER_DAY = 86400;
2222
const int64_t NANOS_PER_DAY = NANOS_PER_SECOND * SECONDS_PER_DAY;
2323

24-
class CSPCORE_EXPORT TimeDelta
24+
class TimeDelta
2525
{
2626
public:
2727
constexpr TimeDelta() : TimeDelta( TimeDelta::NONE() ) {}
@@ -165,7 +165,7 @@ inline std::ostream & operator <<( std::ostream &os, const TimeDelta & d )
165165
return os;
166166
}
167167

168-
class CSPCORE_EXPORT Date
168+
class Date
169169
{
170170
public:
171171
Date() : Date( NONE() ) {}
@@ -316,7 +316,7 @@ inline std::ostream & operator <<( std::ostream &os, const Date & d )
316316
return os;
317317
}
318318

319-
class CSPCORE_EXPORT Time
319+
class Time
320320
{
321321
public:
322322
Time() : Time( -1 ) {} //NONE
@@ -597,7 +597,7 @@ inline std::ostream & operator <<( std::ostream &os, const DateTime & dt )
597597
//Helper class to extract day/month/year/etc info from raw timestamp
598598
//ie DateTimeEx dte( existingDt )
599599
//dte.day, etc etc
600-
class CSPCORE_EXPORT DateTimeEx : public DateTime
600+
class DateTimeEx : public DateTime
601601
{
602602
public:
603603
DateTimeEx( const DateTime & dt );

cpp/csp/engine/AlarmInputAdapter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace csp
99
{
1010

1111
template<typename T>
12-
class CSPENGINE_EXPORT AlarmInputAdapter final : public InputAdapter
12+
class AlarmInputAdapter final : public InputAdapter
1313
{
1414
public:
1515
AlarmInputAdapter( Engine * engine, CspTypePtr & type ) : InputAdapter( engine, type, PushMode::NON_COLLAPSING )

0 commit comments

Comments
 (0)