Changeset e43e4e


Ignore:
Timestamp:
06/04/12 16:07:37 (12 months ago)
Author:
Tiago de Paula Peixoto <tiago@…>
Branches:
master
Children:
fa8ca4
Parents:
70a2ce
git-author:
Tiago de Paula Peixoto <tiago@…> (06/04/12 16:07:37)
git-committer:
Tiago de Paula Peixoto <tiago@…> (06/04/12 16:07:37)
Message:
Fix some remaining issues with the clang compiler in MacOS X
Location:
src/graph
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/graph/graph_properties.hh

    r70a2ce re43e4e  
    212212    const string& operator()(const std::type_info& type) const 
    213213    { 
    214         string* name; 
     214        string const* name; 
    215215        mpl::for_each<TypeSequence> 
    216216            (bind<void>(find_name(), _1, ref(type), 
     
    229229        template <class Type> 
    230230        void operator()(Type, const std::type_info& type, 
    231                         vector<string>& all_names, 
    232                         string*& name) const 
     231                        const vector<string>& all_names, 
     232                        string const*& name) const 
    233233        { 
    234234            size_t index = mpl::find<TypeSequence,Type>::type::pos::value; 
     
    250250 
    251251    const char** _type_names; 
    252     static vector<string> _all_names; 
     252    vector<string> _all_names; 
    253253}; 
    254254 
  • src/graph/layout/graph_sfdp.hh

    r70a2ce re43e4e  
    129129    double r = 0; 
    130130    for (size_t i = 0; i < 2; ++i) 
    131         r += pow(p1[i] - p2[i], 2.); 
     131        r += pow(double(p1[i] - p2[i]), 2.); 
    132132    return sqrt(r); 
    133133} 
Note: See TracChangeset for help on using the changeset viewer.