@@ -74,7 +74,7 @@ void testVariableIndexedView()
7474
7575 // check we get an view if type & interpolation are compatible
7676 {
77- boost ::optional<PrimitiveVariable::IndexedView<Imath::V3f>> optionalIndexedView = primitive->variableIndexedView <IECore::V3fVectorData>(
77+ std ::optional<PrimitiveVariable::IndexedView<Imath::V3f>> optionalIndexedView = primitive->variableIndexedView <IECore::V3fVectorData>(
7878 " P" , IECoreScene::PrimitiveVariable::Interpolation::Vertex
7979 );
8080
@@ -92,7 +92,7 @@ void testVariableIndexedView()
9292 }
9393
9494 // If requiredInterpolation = Invalid matches any interpolation
95- boost ::optional<PrimitiveVariable::IndexedView<Imath::V3f>> optionalIndexedView2 = primitive->variableIndexedView <IECore::V3fVectorData>(
95+ std ::optional<PrimitiveVariable::IndexedView<Imath::V3f>> optionalIndexedView2 = primitive->variableIndexedView <IECore::V3fVectorData>(
9696 " P" , IECoreScene::PrimitiveVariable::Interpolation::Invalid
9797 );
9898
@@ -113,7 +113,7 @@ void testVariableIndexedView()
113113 // missing primvar
114114 {
115115 {
116- boost ::optional<PrimitiveVariable::IndexedView<Imath::V3f>> optionalIndexedView = primitive->variableIndexedView <IECore::V3fVectorData>(
116+ std ::optional<PrimitiveVariable::IndexedView<Imath::V3f>> optionalIndexedView = primitive->variableIndexedView <IECore::V3fVectorData>(
117117 " MISSING" , IECoreScene::PrimitiveVariable::Interpolation::Vertex
118118 );
119119
@@ -123,7 +123,7 @@ void testVariableIndexedView()
123123 bool exceptionRaised = false ;
124124 try
125125 {
126- boost::optional<PrimitiveVariable::IndexedView<Imath::V3f>> optionalIndexedView = primitive->variableIndexedView <IECore::V3fVectorData>(
126+ primitive->variableIndexedView <IECore::V3fVectorData>(
127127 " MISSING" , IECoreScene::PrimitiveVariable::Interpolation::Vertex, true /* throwIfInvalid */
128128 );
129129 }
@@ -139,7 +139,7 @@ void testVariableIndexedView()
139139 // invalid interpolation
140140 {
141141 {
142- boost ::optional<PrimitiveVariable::IndexedView<Imath::V3f>> optionalIndexedView = primitive->variableIndexedView <IECore::V3fVectorData>(
142+ std ::optional<PrimitiveVariable::IndexedView<Imath::V3f>> optionalIndexedView = primitive->variableIndexedView <IECore::V3fVectorData>(
143143 " P" , IECoreScene::PrimitiveVariable::Interpolation::FaceVarying
144144 );
145145
@@ -149,7 +149,7 @@ void testVariableIndexedView()
149149 bool exceptionRaised = false ;
150150 try
151151 {
152- boost::optional<PrimitiveVariable::IndexedView<Imath::V3f>> optionalIndexedView = primitive->variableIndexedView <IECore::V3fVectorData>(
152+ primitive->variableIndexedView <IECore::V3fVectorData>(
153153 " P" , IECoreScene::PrimitiveVariable::Interpolation::FaceVarying, true /* throwIfInvalid */
154154 );
155155 }
@@ -168,7 +168,7 @@ void testVariableIndexedView()
168168 // invalid type
169169 {
170170 {
171- boost ::optional<PrimitiveVariable::IndexedView<Imath::V2f>> optionalIndexedView = primitive->variableIndexedView <IECore::V2fVectorData>(
171+ std ::optional<PrimitiveVariable::IndexedView<Imath::V2f>> optionalIndexedView = primitive->variableIndexedView <IECore::V2fVectorData>(
172172 " P" , IECoreScene::PrimitiveVariable::Interpolation::Vertex
173173 );
174174
@@ -178,7 +178,7 @@ void testVariableIndexedView()
178178 bool exceptionRaised = false ;
179179 try
180180 {
181- boost::optional<PrimitiveVariable::IndexedView<Imath::V2f>> optionalIndexedView = primitive->variableIndexedView <IECore::V2fVectorData>(
181+ primitive->variableIndexedView <IECore::V2fVectorData>(
182182 " P" , IECoreScene::PrimitiveVariable::Interpolation::Vertex, true /* throwIfInvalid */
183183 );
184184 }
0 commit comments