From 0e8867b3938bd11bf94aaafdc40aa8ae29a38d50 Mon Sep 17 00:00:00 2001 From: Matthew Barr Date: Tue, 10 May 2016 13:14:25 +1000 Subject: [PATCH] Combine struct elements to avoid inheritance The multiple inheritance here was slightly overkill, and it also appears to trigger a MSVC bug when writing through the pointer to member. --- src/nfagraph/ng_depth.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/nfagraph/ng_depth.h b/src/nfagraph/ng_depth.h index 38a98a1c..16231ea1 100644 --- a/src/nfagraph/ng_depth.h +++ b/src/nfagraph/ng_depth.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Intel Corporation + * Copyright (c) 2015-2016, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -64,7 +64,11 @@ struct NFAVertexRevDepth { /** * \brief Encapsulates min/max depths relative to all of our special vertices. */ -struct NFAVertexBidiDepth : NFAVertexDepth, NFAVertexRevDepth { +struct NFAVertexBidiDepth { + DepthMinMax fromStart; + DepthMinMax fromStartDotStar; + DepthMinMax toAccept; + DepthMinMax toAcceptEod; }; /**