summaryrefslogtreecommitdiffstats
path: root/Tests/Tutorial/Step2
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-12-20 15:04:32 (GMT)
committerBrad King <brad.king@kitware.com>2013-12-20 15:06:45 (GMT)
commitae6fc555a7e8929f6d96545bd1137c8bd378566d (patch)
treec29313646a1d39c873535551f81b80797d919b8a /Tests/Tutorial/Step2
parentc62cd3e2aeb9ed7e3021bd9e5863294fd0441790 (diff)
downloadCMake-ae6fc555a7e8929f6d96545bd1137c8bd378566d.zip
CMake-ae6fc555a7e8929f6d96545bd1137c8bd378566d.tar.gz
CMake-ae6fc555a7e8929f6d96545bd1137c8bd378566d.tar.bz2
cmGlobalGenerator: Fix value type pushed into autogens vector
The parent commit changed the AutogensType::value_type to be "std::pair<cmQtAutoGenerators,cmTarget const*>" but our std::make_pair call returns "std::pair<cmQtAutoGenerators,cmTarget*>". Construct the value_type directly instead of using make_pair. Otherwise the Sun 5.9 compiler complains ".../Source/cmGlobalGenerator.cxx", line 1281: Error: Formal argument x of type "const std::pair<cmQtAutoGenerators, const cmTarget*>&" in call to "std::vector<std::pair<cmQtAutoGenerators, const cmTarget*> > ::push_back(const std::pair<cmQtAutoGenerators, const cmTarget*>&)" is being passed "std::pair<cmQtAutoGenerators, cmTarget*>".
Diffstat (limited to 'Tests/Tutorial/Step2')
0 files changed, 0 insertions, 0 deletions