Skip to content

Commit

Permalink
FormatData : define type description in Format.cpp instead of FormatD…
Browse files Browse the repository at this point in the history
…ata.cpp IS THIS NEEDED AFTER CORTEX FIX?

- Including Context.h and TypedData.inl causes problems with explicit template instantiation
  • Loading branch information
ericmehl committed Jun 22, 2021
1 parent ceddbeb commit 7cd3905
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 5 additions & 0 deletions src/GafferImage/Format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
//////////////////////////////////////////////////////////////////////////

#include "GafferImage/Format.h"
#include "GafferImage/FormatData.h"

#include "Gaffer/Context.h"

#include <map>

Expand All @@ -43,6 +46,8 @@ using namespace GafferImage;
namespace
{

Gaffer::Context::TypeDescription<GafferImage::FormatData> g_formatDataTypeDescription;

typedef std::map<std::string, Format> FormatMap;

FormatMap &formatMap()
Expand Down
9 changes: 0 additions & 9 deletions src/GafferImage/FormatData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,11 @@
#include "GafferImage/Export.h"
#include "GafferImage/TypeIds.h"

#include "Gaffer/Context.h"

#include "IECore/TypedData.h"
#include "IECore/TypedData.inl"

using namespace Imath;

namespace
{

Gaffer::Context::TypeDescription<GafferImage::FormatData> g_formatDataTypeDescription;

} // namespace

namespace IECore
{

Expand Down

0 comments on commit 7cd3905

Please sign in to comment.