Verified Commit be1baa34 authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

Do not use template for overloaded functions

parent 4a58d5ce
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -123,8 +123,8 @@ bool get_addr_by_hostid(uint64_t hostid, hg_addr_t& svr_addr);

bool is_local_op(size_t recipient);

template<typename T>
hg_return margo_create_wrap(hg_id_t ipc_id, hg_id_t rpc_id, const T&, hg_handle_t& handle, bool force_rpc);
hg_return margo_create_wrap(hg_id_t ipc_id, hg_id_t rpc_id, const std::string&, hg_handle_t& handle, bool force_rpc);

hg_return margo_create_wrap(const hg_id_t ipc_id, const hg_id_t rpc_id, const size_t& recipient, hg_handle_t& handle, bool force_rpc);

#endif //IFS_PRELOAD_UTIL_HPP
+7 −5
Original line number Diff line number Diff line
@@ -403,10 +403,12 @@ margo_create_wrap_helper(const hg_id_t ipc_id, const hg_id_t rpc_id, const size_
 * @param handle
 * @return
 */
template<>
hg_return margo_create_wrap(const hg_id_t ipc_id, const hg_id_t rpc_id, const std::string& path, hg_handle_t& handle,
hg_return margo_create_wrap(const hg_id_t ipc_id, const hg_id_t rpc_id,
                            const std::string& path, hg_handle_t& handle,
                            bool force_rpc) {
    return margo_create_wrap_helper(ipc_id, rpc_id, adafs_hash_path(path, fs_config->host_size), handle, force_rpc);
    return margo_create_wrap_helper(ipc_id, rpc_id,
                                    adafs_hash_path(path, fs_config->host_size), handle,
                                    force_rpc);
}

/**
@@ -418,8 +420,8 @@ hg_return margo_create_wrap(const hg_id_t ipc_id, const hg_id_t rpc_id, const st
 * @param svr_addr
 * @return
 */
template<>
hg_return margo_create_wrap(const hg_id_t ipc_id, const hg_id_t rpc_id, const size_t& recipient, hg_handle_t& handle,
hg_return margo_create_wrap(const hg_id_t ipc_id, const hg_id_t rpc_id,
                            const size_t& recipient, hg_handle_t& handle,
                            bool force_rpc) {
    return margo_create_wrap_helper(ipc_id, rpc_id, recipient, handle, force_rpc);
}
 No newline at end of file