Guest User

Untitled

a guest
Jan 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. Chunk chunk(CX, CY, CZ, this);
  2. chunks.emplace(std::make_pair(std::make_tuple(CX, CY, CZ), chunk));<- this line gives me the error from 84
  3.  
  4. 1>C:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.12.25827includeutility(360): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to '_Mypair'
  5. 1>C:Program Files (x86)Microsoft Visual Studio2017CommunityVCToolsMSVC14.12.25827includeutility(360): note: No constructor could take the source type, or constructor overload resolution was ambiguous
  6. 1>srcEngineWorldWorld.cpp(84): note: see reference to function template instantiation 'std::pair<std::tuple<int,int,int>,Chunk> std::make_pair<std::tuple<int,int,int>,Chunk&>(_Ty1 &&,_Ty2)' being compiled
  7. 1> with
  8. 1> [
  9. 1> _Ty1=std::tuple<int,int,int>,
  10. 1> _Ty2=Chunk &
  11. 1> ]
  12. 1>Done building project "DirtyCraft.vcxproj" -- FAILED.
  13. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Add Comment
Please, Sign In to add comment