Changeset 4a38b9 for src/UIElements


Ignore:
Timestamp:
May 5, 2017, 2:17:49 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, AutomationFragmentation_failures, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph_documentation, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, Fix_ChronosMutex, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, GeometryObjects, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, StoppableMakroAction, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes
Children:
557b39
Parents:
3aa204
git-author:
Frederik Heber <heber@…> (04/05/17 17:24:21)
git-committer:
Frederik Heber <frederik.heber@…> (05/05/17 14:17:49)
Message:

FIX: needed static_cast in QtObservedBond for stating which map<>::at() function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Qt4/InstanceBoard/QtObservedBond.cpp

    r3aa204 r4a38b9  
    4343
    4444#include <boost/assign.hpp>
     45#include <boost/bind.hpp>
    4546
    4647#include "Atom/atom.hpp"
     
    9596  typedef boost::function<ObservableCount_t::mapped_type& (const ObservableCount_t::key_type&)> map_accessor_t;
    9697  const map_accessor_t accessor =
    97       boost::bind<ObservableCount_t::mapped_type&>(
    98           &ObservableCount_t::at,
     98      boost::bind(
     99          static_cast<ObservableCount_t::mapped_type& (ObservableCount_t::*) (const ObservableCount_t::key_type&)>(&ObservableCount_t::at),
    99100          boost::ref(subjectKilledCount), _1);
    100101
Note: See TracChangeset for help on using the changeset viewer.