Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build break with boost 1.64 #248

Closed
waywardmonkeys opened this issue Jul 21, 2017 · 1 comment
Closed

build break with boost 1.64 #248

waywardmonkeys opened this issue Jul 21, 2017 · 1 comment

Comments

@waywardmonkeys
Copy link
Contributor

Description of Issue

When I build with boost 1.64, I get this error:

../pxr/usd/lib/usd/clip.cpp:572:29: error: no viable overloaded '='
        clipSet->anchorInfo = {
        ~~~~~~~~~~~~~~~~~~~ ^ ~
/usr/local/include/boost/optional/optional.hpp:943:15: note: candidate function not viable: cannot convert initializer list argument to 'const boost::optional<pxrInternal_v0_7__pxrReserved__::(anonymous namespace)::_ClipSet::_AnchorInfo>'
    optional& operator= ( optional const& rhs )
              ^
/usr/local/include/boost/optional/optional.hpp:951:15: note: candidate function not viable: cannot convert initializer list argument to 'boost::optional<pxrInternal_v0_7__pxrReserved__::(anonymous namespace)::_ClipSet::_AnchorInfo>'
    optional& operator= ( optional && rhs )
              ^
/usr/local/include/boost/optional/optional.hpp:994:15: note: candidate function not viable: cannot convert initializer list argument to 'boost::none_t'
    optional& operator= ( none_t none_ ) BOOST_NOEXCEPT
              ^
/usr/local/include/boost/optional/optional.hpp:902:5: note: candidate template ignored: couldn't infer template argument 'Expr'
    operator= ( Expr&& expr )
    ^
/usr/local/include/boost/optional/optional.hpp:922:15: note: candidate template ignored: couldn't infer template argument 'U'
    optional& operator= ( optional<U> const& rhs )
              ^
/usr/local/include/boost/optional/optional.hpp:933:15: note: candidate template ignored: couldn't infer template argument 'U'
    optional& operator= ( optional<U> && rhs )
              ^
/usr/local/include/boost/optional/optional.hpp:964:5: note: candidate template ignored: couldn't infer template argument 'T_'
    operator= ( T_&& val )
    ^

I can fix it with this patch, which I didn't like much:

diff --git a/pxr/usd/lib/usd/clip.cpp b/pxr/usd/lib/usd/clip.cpp
index 0bfb8a37..b3c652f4 100644
--- a/pxr/usd/lib/usd/clip.cpp
+++ b/pxr/usd/lib/usd/clip.cpp
@@ -569,7 +569,7 @@ _RecordAnchorInfo(
         const SdfPath& path = node.GetPath();
         const PcpLayerStackRefPtr& layerStack = node.GetLayerStack();
         const SdfLayerRefPtr& layer = layerStack->GetLayers()[layerIdx];
-        clipSet->anchorInfo = {
+        clipSet->anchorInfo = (_ClipSet::_AnchorInfo) {
             layerStack, path, layerIdx, 0, // This will get filled in later
             _GetLayerOffsetToRoot(node, layer)
         };

System Information (OS, Hardware)

I'm building on macOS 10.12.5 with current Xcode (clang version is Apple LLVM version 8.1.0 (clang-802.0.42)).

@jtran56
Copy link

jtran56 commented Jul 21, 2017

Filed as internal issue #148982.

AdamFelt pushed a commit to autodesk-forks/USD that referenced this issue Apr 16, 2024
…/dev/23.02

Regular update adsk/dev branch from pixar dev Tag 23.02 for release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants